Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Esc key error on bootstrap 5 with attribute data-container="body" #2882

Open
Mohit-excel opened this issue Feb 9, 2025 · 0 comments
Open

Comments

@Mohit-excel
Copy link

When i give attribute on select as data-container="body", and i open select dropdown , so i try to close using esc key and as i pressed esc key , dropdown closes but there is error in console as
dropdown.js:97 Uncaught TypeError: Cannot read properties of undefined (reading 'parentNode')
at new hi (dropdown.js:97:34)
at hi.getOrCreateInstance (base-component.js:65:41)
at HTMLDivElement.dataApiKeydownHandler (dropdown.js:418:31)
at HTMLDocument.n (event-handler.js:118:19)

@Mohit-excel Mohit-excel changed the title Esc key error Esc key error on bootstrap 5 with attribute data-container="body" Feb 9, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant