Skip to content

popover's data-content cannot parse such tags as <button><input> #32269

Answered by patrickhlauke
cyxhub asked this question in Q&A
Discussion options

You must be logged in to vote

https://getbootstrap.com/docs/4.5/getting-started/javascript/#sanitizer

further, i'd also recommend looking at the "Making popovers work for keyboard and assistive technology users" note in https://getbootstrap.com/docs/4.5/components/popovers/#usage though

Additionally, while it is possible to also include interactive controls (such as form elements or links) in your popover (by adding these elements to the whiteList or allowed attributes and tags), be aware that currently the popover does not manage keyboard focus order. When a keyboard user opens a popover, focus remains on the triggering element, and as the popover usually does not immediately follow the trigger in the document’s str…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cyxhub
Comment options

Answer selected by cyxhub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants