Skip to content

DragHandleMenu submenus are not accessible on mobile platforms #1220

@kevinsun-dev

Description

@kevinsun-dev

Describe the bug
DragHandleMenu submenus are not accessible on mobile platforms. On mobile browsers, users are unable to enter a submenu. Tapping on "Colors" causes it to disappear, since it only opens the submenu on hover.

To Reproduce
Use any BlockNote, including the minimal example: https://www.blocknotejs.org/examples/basic/minimal

ScreenRecording2024-11-06at9 24 04AM-ezgif com-optimize
This is FireFox simulating an iPhone SE environment.

Likely Solution
I suspect the source of the issue to be trigger={"hover"} on line 126 of packages/mantine/src/menu/Menu.tsx. Mantine itself notes that "trigger=hover" is inaccessible to mobile or keyboard users, recommending "click-hover" instead.

Misc

  • Node version:
  • Package manager:
  • Browser: Firefox 131.0.3 (aarch64)
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
    (Sponsor is OWiC Technologies)

Additional Issues
We're utilizing BlockNote in a mobile setting, if it wouldn't be too difficult to fix, could we revive issues #1035 and #938 and perhaps bump their priority, since we're also running into those issues.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions