🐛(frontend) fix emojipicker closing

In the tree view, if the emoji picker is opened
near the bottom of the viewport, it would
trigger an overflow that rerendered the treeview
and closed the picker immediately.
The root problem is the treeview that rerender
because of not stable props.
To fix this, we change 2 things:
- we use "fixed" position for the emoji picker
  so it won't affect the document flow
- we adjust the position calculation logic, if
  the picker does not have enough space below,
  we position it above the icon instead.
This commit is contained in:
Anthony LC
2026-01-16 14:37:12 +01:00
parent 21f5feab3e
commit 75f71368f4
4 changed files with 32 additions and 61 deletions

View File

@@ -14,6 +14,7 @@ and this project adheres to
- ✅(e2e) fix e2e test for other browsers #1799
- 🐛(frontend) add fallback for unsupported Blocknote languages #1810
- 🐛(frontend) fix emojipicker closing in tree #1808
### Changed