vuejs-datepicker
vuejs-datepicker copied to clipboard
closed event not firing when clicking outside calendar without selecting a value
Hello,
I'm having troubles when trying to work with @closed event.
<datepicker :language='language' minimumView="month" maximumView="month" format="MM/yyyy"
@closeCalendar="myAlert('closeCalendar')"
@opened="myAlert('opened')"
@closed="myAlert('closed')" input-class="col-12 form-control"/>
When I click on the input, @opened is triggers my function, but when I click outside without selecting any value, the functions attached to @closed or @closeCalendar are never invoked.
If I select an value, the @closed is triggered and my function is invoked.
take an 1.3.3 version. bug still occures
verifying that bug still persists in version 1.5.2. Chrome Vue extension only registers the closeCalendar
event from DateInput
when clicking onto other page elements. closed
is triggered on date select or on clicking into input element again.
@charliekassel, I have the same bug at 1.5.2 version.
This still persists 1.5.3
can we merge this PR?
We just ran into this today, closed event still not firing.
Issue still here in versions 1.5.3 and 1.5.4
Does anyone know a workaround?
EDIT: https://github.com/simplesmiler/vue-clickaway worked for me.