mdx-editor / editor

A rich text editor React component for markdown
https://mdxeditor.dev
MIT License
1.75k stars 139 forks source link

[BUG] disable scroll on select tag open #546

Closed winkcor closed 1 month ago

winkcor commented 1 month ago

If you want to ask for support or request features, sponsor the project and contact me over email.

Describe the bug when select open for select heading or admonition, body get pointer-events:none and disable scroll. disabling scroll is not necessary and shouldn't happen. in this case I use custom scrollbar and opening select tag change scroll state. Is it necessary to add data-aria-hidden="true" and aria-hidden="true" to all element when a select tag open? it have lot overhead it even added to script tags. it's just select tag shouldn't be that complex. even link dialog not open properly, if all element be relative to parent it be great

Reproduction codesandbox

To Reproduce Steps to reproduce the behavior:

  1. make page overflow and scroll
  2. when click select and open it page scroll get disable

Expected behavior don't disable or change scroll state when open select

petyosi commented 1 month ago

This is the default behavior of the UI components used by the editor. If this does not fit your use case, you can build your own toolbar components.