the data-trigger
focus is not working for me ...
<span data-content='foo' data-html='true' data-placement='top' data-container='body' data-trigger='focus' bs-popover>
Nothing is actually happening when I am clicking on this element. If I remove data-trigger='focus'
and set it to hover
or click
, it does work.
I am using angularjs. 1.2.18 and angular-strap : 2.2.4
You can add a
tabindex
attribute to make a<span>
focus-able. This also applies for<div>
and<table>
elements.Observe the following change to your markup...
see MDN tabindex source
Plunker - stripped demo from the docs with
tabindex