Using Metronic v4.5.4
Unable to get a datepicker to work in a modal window when the using an external page.
Is this a known bug? I’ve tried everything I could think of using an external page in a modal…
You can check the datepicker demo on modal window here:
By right it should work without any issue. If possible can you please provide us a test link to your developing site so we can check your code further.
Any luck digging into the issue?
It seems you are not initializing the datepicker after the form content is loaded via ajax. Please try to initialize those datepicker inputs on ajax content loaded. You can refer to the datepicker documentation how to initialize a datepicker instances: https://bootstrap-datepicker.readthedocs.io/en/stable/
Awesome, that helped and all good now, thanks!
You must be logged in to reply to this topic.