Panman82 / ember-bootstrap-switch

An ember-cli addon to import bootstrap-switch and provide an Ember component.
MIT License
5 stars 4 forks source link

Cannot read property 'bootstrapSwitch' of undefined #4

Closed zacstewart closed 8 years ago

zacstewart commented 9 years ago

This line is returning undefined. The underlying this.get('element') is returning null. As a result, using the "checked" property breaks this.

I can't figure out of the error is an Ember bug or specific to this addon, but I thought I'd share it here in hopes that someone else has seen it. I'm not doing anything unusual in my usage, I don't think:

= bs-switch value=advertisingSite on-switch-change='toggleAdvertisingSite' checked=false
Panman82 commented 9 years ago

Yeah, I've had troubles using this with Ember 1.13 and plan on re-writing the component to take advantage of the new rendering hooks with Glimmer. I'll need this for a project I'm working on so look for a new version in the next week or so.

Panman82 commented 8 years ago

FYI, this was fixed with 1.13.0 that was just released.