htmlstreamofficial / preline

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
https://preline.co
Other
4.9k stars 309 forks source link

tooltips do not work inside of table #477

Closed avlemos closed 1 month ago

avlemos commented 1 month ago

Summary

tooltips can work outside of a table, but not inside

Steps to Reproduce

Create a simple table and try to add a tooltip on one of the cells

Demo Link

https://www.carcostinsight.com/records

Expected Behavior

when you hover the i

image

a tooltip was expected

Actual Behavior

no tooltip comes up, unless you create the tooltip outside the

Screenshots

No response

olegpix commented 1 month ago

@avlemos Hi, You need to initialize (using HSStaticMethods.autoInit(['tooltip'])) the tooltips after the table has been generated. As I can see, the rows are generated after the page has loaded. Secondly, we recommend placing the Preline script at the bottom of the page (after the closing body tag), not at the top.

avlemos commented 1 month ago

it's odd. it only works some times, not everytime :/