BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

Expose dropdown open/close events to allow external scroll locking

Open expiante opened this issue 10 months ago • 2 comments

Currently, it is not possible to track whether an editor dropdown (e.g. suggestion menu, formatting menu) is open from outside the editor.

This makes it difficult to prevent background scrolling, especially in layouts where the editor is placed inside a custom scrollable container rather than relying on document.body.

Expected Behavior

  • A callback or event when an editor dropdown opens or closes
  • Allow consumers to:
    • Disable scrolling on their own scrollable container
    • Re-enable scrolling when the dropdown is closed

This would make dropdown interactions easier and more predictable in complex layouts.

expiante avatar Feb 02 '26 13:02 expiante

Will require some thought on how we approach this, I'd prefer to have better defaults but would need to review our dropdown usage to see if there is a rule we can apply to all of them

nperez0111 avatar Feb 03 '26 09:02 nperez0111

we can now target what elements the portal goes to, so I think this is obsolete now

nperez0111 avatar Nov 09 '26 13:11 nperez0111