Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Additional CSS button not working after back navigation (WordPre…
…ss#68954) * Reset editor canvas view when navigating away from CSS screen * Added effect to reset editorCanvasContainerView when navigating away from CSS screen * Added tracking of previous path using usePrevious hook to detect navigation changes * Added comparison of current and previous paths to determine when to reset the view * Reset view to undefined to ensure clean state for next CSS screen activation * Reset editor canvas view when navigating back from CSS screen * Added onBack handler to ScreenCSS component * Added setEditorCanvasContainerView to reset view state * Added missing dependencies for view state management * Fixed Additional CSS button not working after navigation Co-authored-by: Infinite-Null <[email protected]> Co-authored-by: t-hamano <[email protected]>
- Loading branch information