You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mobile formatting toolbar: the block type (and color) dropdown opens below the toolbar, behind the on-screen keyboard #3378
The block type dropdown of the mobile formatting toolbar opens below the toolbar, i.e. behind the keyboard, so no item can be chosen (seen on the iPhone).
Measured on desktop Chromium with touch emulation: with a visual viewport height of 335 px and the toolbar at y = 289, the dropdown was placed at y = 340 with its full height (456 px) and data-position="bottom".
What did you expect to happen?
The list opens above the toolbar, inside the visible area, and scrolls if it is too long.
Steps to reproduce
Focus the editor on a phone so that the keyboard and the mobile formatting toolbar (pinned above the keyboard) are shown.
Tap the block type select (the first button, e.g. "Paragraph").
BlockNote version
v0.57.0
Environment
Safari on iOS 27.2.1 (iPhone 12 Pro Max); also desktop Chromium with touch emulation. @blocknote/mantine 0.57.0, @mantine/core 9.8.0, React 19
Additional context
Where we saw it
iPhone 12 Pro Max, iOS 27.2.1, Safari — on the device we saw that the list is hidden behind the keyboard and cannot be used.
Desktop Chromium with touch emulation (shrinking the viewport height after the editor has loaded, so that the mobile toolbar is shown) — the numbers above were measured here.
Cause (as far as we can tell)
The Mantine Menu is used with middlewares={{ flip: true, shift: true, size: true }}. (ToolbarSelect passes the same middlewares on main as of 2026-11-20; #3306 changes where the mobile toolbar is portalled, not this.) With Mantine's default preventPositionChangeWhenVisible, flip is configured with fallbackStrategy: "initialPlacement". When the full list fits neither above nor below (it is taller than the space above the toolbar), the placement stays at the initial side (bottom), and size then computes a negative max-height, which is ignored.
Activity
judithroth commentedon Nov 20, 2026
We also encountered that and Ihor found the root of the issue: opf/openproject#26648 (comment)