bootstrap
bootstrap copied to clipboard
[Popover] Cannot show popover if its title or content was set dynamically
Prerequisites
- [X] I have searched for duplicate or closed issues
- [X] I have validated any HTML to avoid common problems
- [X] I have read the contributing guidelines
Describe the issue
The element on which I am manually triggering a popover, must already have data-bs-content or data-bs-title attribute set.
Otherwise, despite setting title/content using setContent() later, calling show() does not show it.
Reduced test cases
https://codepen.io/pmishev/pen/MWdmGGZ
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
5.3.3