Behaviours are not working for me. Basically, meteor does something funny with jquery so the solution is supposedly to use onRendered like such:
Template.myTemplateName.onRendered(function(){
this.$(".dropdown").dropdown();
});
However, when I do this, meteor crashes. Has anyone else had this issue?
EDIT: I noticed meteor has jquery version 1.11.8 installed. That’s two versions behind the current RC. Perhaps this is what’s causing issues with semantic?
W20160524-01:07:17.660(-4)? (STDERR)
W20160524-01:07:17.660(-4)? (STDERR) /Users/mattmacpherson/.meteor/packages/meteor-tool/.1.3.2_4.lbyo5v++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:267
W20160524-01:07:17.660(-4)? (STDERR) throw(ex);
W20160524-01:07:17.660(-4)? (STDERR) ^
W20160524-01:07:17.668(-4)? (STDERR) ReferenceError: Template is not defined
W20160524-01:07:17.668(-4)? (STDERR) at meteorInstall.test.testingJS.js (test/testingJS.js:3:1)
W20160524-01:07:17.668(-4)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:141:1)
W20160524-01:07:17.668(-4)? (STDERR) at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:75:1)
W20160524-01:07:17.669(-4)? (STDERR) at /Users/mattmacpherson/Code/edabit/.meteor/local/build/programs/server/app/app.js:102:1
W20160524-01:07:17.669(-4)? (STDERR) at /Users/mattmacpherson/Code/edabit/.meteor/local/build/programs/server/boot.js:283:10
W20160524-01:07:17.669(-4)? (STDERR) at Array.forEach (native)
W20160524-01:07:17.669(-4)? (STDERR) at Function._.each._.forEach (/Users/mattmacpherson/.meteor/packages/meteor-tool/.1.3.2_4.lbyo5v++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
W20160524-01:07:17.669(-4)? (STDERR) at /Users/mattmacpherson/Code/edabit/.meteor/local/build/programs/server/boot.js:133:5