Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Armani's avatar
Level 17

flatpickr issue inside modal

I used flatpickr datetime picker in my project and it works fine but when I use input inside a modal I can not use month or year input to quickly change date

https://jsfiddle.net/a5d3okub/3/

I can't figure it out.

Thanks in advanced

0 likes
2 replies
Armani's avatar
Level 17

I forgot to say that I used this and fixed the problem, but because it will wrap the element with a div, it makes it look weird. Can you say what is the problem without using static property. is it javascript or css? If it is possible do not use static property.

Please or to participate in this conversation.