bootstrap5-tags icon indicating copy to clipboard operation
bootstrap5-tags copied to clipboard

Pass through the title attribute for tooltips

Open tim1mw opened this issue 8 months ago • 1 comments

I have a use case where I need to pass through the title attribute to show tooltips against the dropdown list, however the title attribute seems to get lost. I've had a dig in the code and came up with a very simple patch (attached) that will take the title from the original <option> element and apply it to the containing <li> element of the tag list.

I'm using the <li> instead of the underlying <a> because the tooltips don't work on the <a> tag if the option has been disabled. I'm using the tooltip to explain why the option has been disabled so this is important.

title.patch.txt

tim1mw avatar Jun 04 '24 13:06 tim1mw