plusacht / ember-bootstrap-datetimepicker

Ember CLI Bootstrap datetime picker
MIT License
29 stars 64 forks source link

bsDateTimePicker is null #6

Closed davetapley closed 9 years ago

davetapley commented 9 years ago

I followed the readme:

npm install ember-bootstrap-datetimepicker --save-dev
ember g ember-bootstrap-datetimepicker

And put in a {{bs-datetimepicker date=mydate format='YYYY-MM-DD'}}.

But I get this in the JS console:

Uncaught TypeError: undefined is not a function

Which comes from here, and sure enough if I put in a break point and this.get('bsDateTimePicker'), it's null. Any ideas?

rafaeliga commented 9 years ago

+1

I got the same error here, @dukedave are you using ember-cli?

davetapley commented 9 years ago

@rafaeliga yep, 0.1.5. FWIW I've switched to http://www.github.com/edgycircle/ember-pikaday, which works fine.

rafaeliga commented 9 years ago

@dukedave thanks for your tip! but I need one with time picker...

tommyblue commented 9 years ago

I had the same problem, it's caused by the new version of bootstrap-datetimepicker. I just opened a pull request to fix it

claudiocro commented 9 years ago

I just released v0.2.8 where I updated to eonasdan-bootstrap-datetimepicker to 4.0.0. This should fix this error.

rafaeliga commented 9 years ago

thanks @claudiocro !!!

claudiocro commented 9 years ago

I'm closing this issue. It should be fixed