ember-cli-bootstrap-datepicker
ember-cli-bootstrap-datepicker copied to clipboard
Support for focus in (and maybe other) events
In Ember in a normal {{input}}
I can do something like
{{input focus-in="MyAction"}}
Could you add this (the equivalent of the onfocus dom event) to this addon please? More than happy to code this myself and submit a PR, although would need a couple hints on where/how you would add this to datepicker-support.js?
I would really like to see support for focus-in and focus-out events. Are you still open to submit a PR? (or else I would give it a shot)
It should be pretty straightforward to implement, sth. like:
on('focusin', function () {
self.sendAction('focusIn');
})
should do, I guess :smile:
@octronic This is on my list but could take a while to get to so feel free.
Thank you very much for you help @octronic and @adam-knights!
Alright. Thanks for the quick reply!
@adam-knights: please have a look at #64 if it fits your needs as well
:+1: