Basic search list example JS exception
Basic search list example JS exception
kschl
Posts: 8Questions: 3Answers: 0
Hi,
thank you very much for providing the wonderful ColumnControl extension.
Link to Test case:
https://datatables.net/extensions/columncontrol/examples/searchList/basic.html
Bootstrap 5
Edge, Version 144.0.3719.92 (Official Build) (64-Bit)
Description of problem:
1. Click Hamburger button of any column
2. Click in search field
3. Hit ESC key
→ Uncaught TypeError: Cannot read properties of undefined (reading 'parentNode')
in dropdown.js
No exception in other Bootstrap versions using Edge and Bootstrap 5 using Chrome, Version 144.0.7559.110 (Official Build) (64-bit)
Replies
Interesting - thanks for letting me know about this. I suspect that because I'm using Bootstrap classes for the styling (to make it look like a Bootstrap dropdown), one of their listeners is seeing the event, then failing to find a dropdown instance and thus throwing an error.
My initial feeling is that a patch in Bootstrap 5's JS to not throw an error if a dropdown is not found, would be the correct way to handle this, but I'm not certain. I'll look into it more and post back when I have more information.
Regards,
Allan