fix: guard hideMenuIfNotFrozen against undefined view state (#2694) (#2699)
When the EditorView is re-created (e.g. toggling editable) while the side menu is visible, a queued floating-ui scroll callback can fire after view.state has been cleared, causing a TypeError. Use optional chaining so the early return covers that case.
Y
Yousef committed
e9497e3e6bbcf5afc5797030cf5394da03418f90
Parent: 15eab07
Committed by GitHub <noreply@github.com>
on 5/1/2026, 6:01:30 AM