plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
486 stars 661 forks source link

Order layout panel should be enabled only when we are focused on that panel #6492

Open ichim-david opened 3 days ago

ichim-david commented 3 days ago

Describe the bug The order side panel is rendering even when it's the order button isn't focused. We should enable it only when we want to interact with it as it's another set of elements that re-render every time there is a change in the blocks within the page. To Reproduce Steps to reproduce the behavior: Use devtools to see the order panel logic rendered even when you don't intend to interact with it because your focus is on the page options or a certain focused block.

Expected behavior Order panel should render only when focused.