Skip to content

Fix for month and year select not showing properly in bootstrap 5 modals#2215

Closed
gianlucagiacometti wants to merge 1 commit into
jquery:mainfrom
gianlucagiacometti:main
Closed

Fix for month and year select not showing properly in bootstrap 5 modals#2215
gianlucagiacometti wants to merge 1 commit into
jquery:mainfrom
gianlucagiacometti:main

Conversation

@gianlucagiacometti
Copy link
Copy Markdown

Ability to read an option "container" to solve an issue with datepicker in bootstrap 5.x modals.
When datepicker is applied to an input field within a modal with bootstrap 5 and changeMonth or changeYear are set as true, the select with months/years shows and disappears immediately. This because the datepicker is always attached to the "body" element.
(I've always thought this option was already existing but I coulnd't find it, forgive me if there is already a solution for this which I was not aware about)

@linux-foundation-easycla
Copy link
Copy Markdown

CLA Not Signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant