Open rathboma opened 6 years ago
Here is the offending commit:
https://github.com/charliekassel/vuejs-datepicker/commit/cd96cb60d5de338d751d4f324eef5c4bf30d955f
Yes, this is rather unfortunate. We rely on this event not to trigger any clicks on the underlying objects, so 1.5.4 is not possible to use.
This and the closed event being broken seem like major bugs
Still can't use 'closed' and 'opened' events.
Still can't use 'opened' events.
Still can't use 'opened' events.
When is it going to be fixed?
I'm also waiting for a fix, the breaks some functionality of our application.
Just FYI, this is a side-effect of the input being marked as "READONLY". Remove that tag and it fixes the emit problem. Closed/Opened/Selected all work when the input does not have a "readonly" attribute.
Still working on solving that part of the equation, but that is the source of the issue. Just thought I'd share since I'm looking into it.
Ok, I think I figured it out. There is a prop you can pass called "typeable". That will remove "readonly" from the input field, which fixes this problem as well as the readonly formatting issues you'll have in Bootstrap 4.
What is needed: datepicker :typeable="true"
I stumbled on this page looking for a solution for the opened and closed events not being fired. The addition of :typeable="true" to the datepicker tag doesn't have any discernable effect. (The events still do not get fired). As far as I can see, this is still broken.
If you need opened
event for validation try using :typeable="true"
and @input="<your_code_here>
worked for me.
If you need
opened
event for validation try using:typeable="true"
and@input="<your_code_here>
worked for me.
work for me in version 1.6.2 Thanks yllndritb 👍👍
just try to do this :
<datepicker ref="dp1" @focusin.native="onfocusin"></datepicker>
1.5.3 correctly fires the
opened
event. 1.5.4 does not. Looks like code was removed from Datepicker.vue,showCalendar