feathericons / feather

Simply beautiful open-source icons
https://feathericons.com
MIT License
24.65k stars 1.21k forks source link

Data-feather not displaying in child row of datatables. #1118

Open peterimbery opened 2 years ago

peterimbery commented 2 years ago

Prerequisites

Step to reproduce

I am using bootstrap datatables. I am creating data-feathers like . The table I am using is responsive so when the screen gets too small rows get added to datatable details rows (child rows). When the data-feather is moved to a child row the data-feather no longer gets computed as an svg and the computed output just stays at essentially it just doesn't display then.

I am doing a feather.replace() in the drawCallback function. That seems to work great and keep data feathers displaying even when sorting and using pagination. This problem only exists when the data feather is in the child row. Even if you resize the window on the fly it will show up when it is in a visible column then disappear when it gets moved to a child row.

Actual behavior

Any message or error

No error messages

Resources

1aNonComputedSVG 1aComputedSVG