Skip to content

bug: The drawer crashes the browser when you click the button to open it after copying text from the page #4548

@wisepythagoras

Description

@wisepythagoras

Reproduction URL (Required)

https://daisyui.com/components/drawer/

What version of daisyUI are you using?

No response

Which browsers are you seeing the problem on?

Any Chrome-based browser

Describe your issue

Description

If you click the "Open drawer" button the drawer opens as expected. However, if you mark and copy any text on the page and click the "Open drawer" button, the Chrome tab crashes completely, as shown below in the screen grab

Chrome:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36

OS: Windows 11 / Ubuntu 26.04

I've tried the latest release of Daisy and Tailwind and it still happens. We've noticed this on our own app as well as the example page. We also tested Microsoft Edge (can repro) and Firefox (works as expected).

Demo

chrome_vc3TjlTdh8.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions