vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

Datepicker never triggers the "opened" event.

Open isNaN opened this issue 6 years ago • 5 comments
trafficstars

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.

isNaN avatar Oct 29 '19 15:10 isNaN

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?

Safe-Mode avatar Nov 07 '19 11:11 Safe-Mode

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..

crazy-grizzly avatar Nov 14 '19 16:11 crazy-grizzly

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

MrWook avatar Nov 15 '19 07:11 MrWook

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();
};

SuchMonkey avatar Feb 05 '20 14:02 SuchMonkey

"vuejs-datepicker": "1.5.3", has "opened". Gone in "1.5.4"

manavm1990 avatar Feb 14 '20 01:02 manavm1990