saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.14k stars 1.3k forks source link

bug: collapse with arrow or plus crashes edge #3128

Closed AndreasRoither closed 1 week ago

AndreasRoither commented 4 months ago

What version of daisyUI are you using?

4.12.10

Which browsers are you seeing the problem on?

Edge

Reproduction URL

https://daisyui.com/components/collapse/

Describe your issue

Environment / Versions

Browser: Edge 122.0.2365.80, no extensions installed affected daisyui version: >= 4.12.8

Error Description

When hovering/clicking a collapse component that has either collapse-arrow or collapse-plus as css class, Edge (122.0.2365.80) crashes. There are no console errors or warnings in the console.

From my tests, removing either collapse-arrow or collapse-plus class on the collapse component results in normal component behavior. Daisyui versions >= 4.12.8 all have the same problem (versions <= 4.12.7 have no problem).

Other browsers like Chrome or Firefox do not seem affected in the latest versions. Due to a constraint, I can not upgrade Edge to a newer version yet and can thus not circumvent the error unless I use a fixed daisyui version.

Component: image

Crash: image

To download edge use the official site to select the version: https://www.microsoft.com/en-us/edge/business/download image


Edit: Hovering over cards at https://daisyui.com/docs/install/

image

also produces the crash.

Edit 2: Opening https://daisyui.com/ also crashes the browser tab.

3124 seems related at first, but I have no extensions installed

github-actions[bot] commented 4 months ago

Thank you @AndreasRoither for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

flip111 commented 1 week ago

this is a memory error in edge browser. Try upgrading your browser or use firefox. that daisyui triggers this edge bug doesn't make it a daisyui bug