Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix: make sidebar closed on mobile when page loads even if it was opened before the reload #6876
On the desktop, we should persist the sidebar that was opened before. On mobile that should not apply and by default sidebars should be closed.
This PR adds a flag to onChangeListener that allows usages to explicitly set they want the listner invoked at the start.
How has this been tested?
Open Gutenberg on mobile, verify all sidebars are closed.
End to end test added in #6877.