I am currently in the process of developing a web component using plain JavaScript and implementing Bootstrap 5 for styling purposes. While the Bootstrap styling is functioning correctly, I am encountering issues with the event listeners for the Bootstrap dropdown.
To address this, I have enclosed the Bootstrap JavaScript content within a script tag and placed it inside the shadow root.
Being relatively new to web components and shadow root usage, I am uncertain if incorporating Bootstrap within the shadow root is the most appropriate approach.
Any advice or guidance on this matter would be greatly appreciated!
Below is the provided code snippet for your review.
web-component.js
// code snippet
sample.html
// code snippet
Upon observing the output, the button displays with the appropriate Bootstrap style, however, it remains unresponsive when clicked.