Skip to content

Modal allows background text selection & scroll #19

@marchellodev

Description

@marchellodev

When the modal window is open, the user can still scroll the background content (via the mouse wheel) or select all text (via Ctrl+A).

To minimally reproduce this:

  1. open https://solid-headless.vercel.app/preview/dialog
  2. open dev tools and add a lot of text after the button html code
  3. open the modal window
  4. try scrolling or pressing Ctrl+A to select all the text

The issue might be related to tailwindlabs/headlessui#1056
Also maybe it has something to do with the fact that I am using astro js, but I do not think so.

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