🐛(frontend) keep editor mounted when resize window

When resizing the window and crossing the desktop
breakpoint, the editor was unmounted. It could
lead to loss of data if there were unsaved changes,
and tiptap crash if the toolbar was used while the
editor was unmounted.
It was caused by the ResizableLeftPanel component
which was rerendering the editor.
We now keep the editor mounted when resizing
the window, by keeping the ResizableLeftPanel
component rendered but setting its size to 0
and disabling the resize handle.
This commit is contained in:
Anthony LC
2025-12-10 11:48:09 +01:00
parent 99131dc917
commit af15e77713
6 changed files with 129 additions and 65 deletions

View File

@@ -21,6 +21,7 @@ and this project adheres to
### Fixed
- 🐛(nginx) fix / location to handle new static pages
- 🐛(frontend) rerendering during resize window #1715
## [4.0.0] - 2025-12-01