v5: Error - Bootstrap doesn't allow more than one instance per element.
See original GitHub issueI have this error:
Bootstrap doesn’t allow more than one instance per element. Bound instance: bs.tooltip.
using this code:
<button class="btn btn-dark" type="button" data-bs-toggle="dropdown" data-bs-auto-close="true" data-bs-toggle-2="tooltip" data-bs-placement="bottom" title="Lorem Ipsum" aria-expanded="false">
It looks like you can’t have dropdowns and tooltips together, but it should be possible.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Bootstrap doesn't allow more than one instance per element
I have this error: Bootstrap doesn't allow more than one instance per element. Bound instance: bs.tooltip. using this code: <button class="btn ...
Read more >Bootstrap doesn't allow more than one instance per element ...
I'm developing a WooCommerce plugin, then I encounter this error. But in some themes it's working. However I'm a bit worried because it ......
Read more >Using Alerts: &quot;Bootstrap doesn&#039
The message shows, but also the javascript error: "Bootstrap doesn't allow more than one instance per element. Bound instance: bs.alert.".
Read more >Tooltips · Bootstrap v5.0
When triggered from hyperlinks that span multiple lines, tooltips will be centered. ... Tooltips can be triggered thanks to an element inside a...
Read more >Migrating to v5 - Bootstrap
Use the .bg-gradient class to add gradients to elements instead of the ... box-shadow mixins now allow null values and drop none from...
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
No, from an accessibility perspective it should not exist so we don’t support it.
To elaborate:
aria-expanded
attribute?AFAIK that’s not something we’ll consider.
It’s possible to trigger tooltips on the focus, shortcut key or add an extra icon just for tooltips. I’m aware of that. but still, your assumption is false! It’s a focus, long tap, or click. But not all!
It’s a dropdown that has a tooltip too! How should I handle on the touch screen or keyboard is a framework independent decision.
From the user’s perspective, What they see on the desktop.