Inspector Controls: Inputs aren't clearing after control is reset via panel menu #42455
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Feature] UI Components
Impacts or related to the UI component system
[Package] Components
/packages/components
[Type] Bug
An existing feature does not function as intended
Description
When resetting some of the more complex or compound controls via their panel's menu, their inputs aren't being cleared. This is affecting multiple controls in the Inspector Controls sidebar including padding, margin, borders and border radii etc.
A git bisect shows this regressed when #40518 landed.
Expected Behaviour
When resetting a control, its value is cleared from its field, when that field doesn't have any default value.
Actual Behaviour
When resetting the padding control, for example, its individual side controls are not cleared after resetting padding via the panel's menu
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2022-07-15.at.4.45.06.pm.mp4
Environment info
trunk
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: