Content not shown in popover
See original GitHub issueI upgraded from 1.3 to 1.4. In 1.3 my popovers were all well. With 1.4 they showed up, but the content text was missing - only the title was visible.
I even tried with the code from demo:
<a href="#" class="btn danger" rel="popover" data-content="And here's some amazing content. It's very engaging. right?" data-original-title="A title">hover for popover</a>
I could workaround this situation with adding my own function to the content parameter, like here:
$("a[rel=popover]").popover({
offset: 10,
placement: 'above',
content : function() {
return $(this).attr('data-content');
}
}).click(function(e) {
e.preventDefault()
})
It seems this function is broken with 1.4. I am just curious why the demo is working.
Issue Analytics
- State:
- Created 12 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Bootstrap popover not showing content - Stack Overflow
I can get the popover to show up when the link is clicked however I don't see any content in the box except...
Read more >Bootstrap 3.4.1 popover content not shown on Chrome #28290
Hi, Windows 10 Chrome 72 The popover content (div class="container-fluid") is not shown on Chrome when using Bootstrap 3.4.1.
Read more >HTML : Bootstrap popover not showing content - YouTube
HTML : Bootstrap popover not showing content [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] HTML : Bootstrap popover ...
Read more >Data Popover from Bootstrap is not working with HTML in ...
Problem: When I use the native Bootstrap PopOver with HTML in it's content, the frontend is not displaying that PopOver and the HTML...
Read more >Popovers · Bootstrap v5.0
Zero-length title and content values will never show a popover. Specify container: 'body' to avoid ... Triggering popovers on hidden elements will not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Try turning off sanitize
data-content is not able to show text starts with ‘<’ e.g data-content='
’ tag.