When I click on open modal button the datepicker is not working.
Expected behavior and actual behavior
The datepicker should have worked normally but it is not opening inside modal.
I check in normal page it is working fine.
Most probably it can be because datepicker is not initialized when it is loaded dynamically inside modal.
I have also modified the z-index also. But it looks like a JS error.
The create and update actions are working fine but only problem is datepicker or even select2 is not working.
Environment
Browsers
[ ] Google Chrome
[ ] Mozilla Firefox
Operating System
[ ] Windows
Libraries
jQuery version:
yii2-widget-datepicker version:@dev-master
Isolating the problem
[ ] The bug happens consistently across all tested browsers
[ ] This bug happens when using yii2-widget-datepicker with dynamic modal.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Prerequisites
master
branch of yii2-widget-datepicker.Steps to reproduce the issue
Expected behavior and actual behavior
The datepicker should have worked normally but it is not opening inside modal.
I check in normal page it is working fine.
Most probably it can be because datepicker is not initialized when it is loaded dynamically inside modal. I have also modified the z-index also. But it looks like a JS error.
The create and update actions are working fine but only problem is datepicker or even select2 is not working.
Environment
Browsers
Operating System
Libraries
Isolating the problem