Open jimbatamang opened 2 years ago
+1
@jimbatamang did you manage to solve it somehow?
Well yes I did but with bit custom way. I noticed that the library has show()
method, so I end up adding ref
to the calendar component and calling that method direclty from my component. You can also hide it with same way. The method is called hide()
.
My code looks like this:
const showCalendar = () => { datepicker.value.show() }
const hideCalendar = () => { datepicker.value.hide() }
@jimbatamang can you maybe send me an example of your component with more context, not really sure where to put the code
Nah, no need, managed to make it work
When this date-picker get used inside modal which renders inside portal (teleport: https://v3.vuejs.org/guide/teleport.html), the
show
andhide
method doesn't get triggered. Which means, the calendar will not appear.