Popover selector option not working
See original GitHub issueWhen using the selector
popover option, nothing actually happens:
<div id="some-div">
<span>Some stuff</span>
</div>
<div id="popover-element">
<p>This is the popover text</p>
<p>But it also gets complicated...</p>
</div>
and:
$(document).ready(function() {
$('#some-div').popover({
selector: $('#popover-element') // also tried just '#popover-element', same result
});
});
If I revert back to just a data-content
:
<div id="some-div" data-content="hai">
then things work fine, but I need more than just text in the popover.
Issue Analytics
- State:
- Created 12 years ago
- Comments:13
Top Results From Across the Web
Popover not working for the select option - Stack Overflow
I am using popover for the first time, and believe that $("#selectList").popover({ trigger: 'manual', placement: 'right', content: $this.attr(" ...
Read more >Popovers - Bootstrap
Triggering popovers on hidden elements will not work. Popovers for .disabled or disabled elements must be triggered on a wrapper element.
Read more >Bootstrap Popovers - examples & tutorial
Triggering popovers on hidden elements will not work. ... using the selector option) cannot be individually destroyed on descendant trigger elements.
Read more >Bootstrap Popover Plugin - W3Schools
Note: Popovers must be initialized with jQuery: select the specified element and call the popover() method. The following code will enable all popovers...
Read more >Popovers · Bootstrap
Specify container: 'body' to avoid rendering problems in more complex components (like our input groups, button groups, etc). Triggering popovers on hidden ...
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
Only dragging this back up, as I can’t actually decipher what the
selector: option
should do.“if a selector is provided, tooltip objects will be delegated to the specified targets”
I’ve tried giving it other another selector i.e.‘#example’
The popover doesn’t load up, i’m not sure if this selector attribute changes the hover target, or the target of where the popover is rendered?
+1 this is confusing indeed