vuejs-datepicker
vuejs-datepicker copied to clipboard
Datepicker never triggers the "opened" event.
Expected result: The component triggering an event named "opened" whenever the datepicker opens.
Actual result: The event never triggers, and could not find the string "opened" in the source code.
Expected result: The component triggering an event named "opened" whenever the datepicker opens.
Actual result: The event never triggers, and could not find the string "opened" in the source code.
Any solutions?
Expected result: The component triggering an event named "opened" whenever the datepicker opens. Actual result: The event never triggers, and could not find the string "opened" in the source code.
Any solutions?
I guess something is happened with the author.. Because there is no activity for last 5 months..
Expected result: The component triggering an event named "opened" whenever the datepicker opens. Actual result: The event never triggers, and could not find the string "opened" in the source code.
Any solutions?
I guess something is happened with the author.. Because there is no activity for last 5 months..
2 Month ago I asked him if the company where i work could take over the project but he refused 🤷♂ https://github.com/charliekassel/vuejs-datepicker/issues/764
There is actually no mention of "opened" in the code. I ended up monkey patching the component. For anyone interested:
Datepicker.methods.showCalendar = function() {
if (this.disabled || this.isInline) {
return false;
}
if (this.isOpen) {
return this.close(true);
} else if (!this.isInline) {
this.$emit('opened');
}
this.setInitialView();
};
"vuejs-datepicker": "1.5.3", has "opened". Gone in "1.5.4"