MikaelEdebro / vue-airbnb-style-datepicker

A VueJs datepicker with a similar look and functionality as the popular AirBnb datepicker.
https://mikaeledebro.gitbooks.io/vue-airbnb-style-datepicker/
MIT License
505 stars 105 forks source link

Trigger event not appended by default #122

Open funder7 opened 5 years ago

funder7 commented 5 years ago

Hi, I've found other issues related to this, but I'd like to point out that when the datepicker component is instantiated, no triggering event is linked to the related dom elements (input, button, etc...).

At the moment, specifying the triggerElementId does nothing, so in order to fix it I had to follow some suggestions found in the other similar issues. Actually I've created a property in the data object in my custom component (which contains AirbnbStyleDatepicker). Afterwards, I've linked a "showPicker" method to the @click event attached to the dom element which has to fire the trigger event.

I think that this issue has to be fixed, because the triggerElementId property is a key feature of this component.

danielmaartens commented 4 years ago

@MikaelEdebro @fadafez

I have the same issue. When I click on "select dates" input, the modal does not come up.

In the image below you can see the input field is focused but no modal appears ?

This is urgent.

image
funder7 commented 4 years ago

Sorry @danielmaartens but I cannot help you, I'm not working on that project anymore :/