bootstrap5-tags
bootstrap5-tags copied to clipboard
Pass through the title attribute for tooltips
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.