BoxControl: Add debounce to onKeyDown in underlying input controls #30222
Labels
[Feature] Inspector Controls
The interface showing block settings and the controls available for each block
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Currently the
BoxControl
uses theisPressEnterToChange
prop on its underlying unit controls. This isn't consistent with a lot of other uses ofUnitControl
.It appears that it may do this to prevent a jumpy user experience when editing values such as margins or padding. The downside is that a lot of users may not understand that they need to press enter to commit the change or select a new field so the blur event can trigger the
onChange
.An example of such a situation can be found in this discussion on a PR adding margin support to the separator block.
What is your proposed solution?
isPressEnterToChange
for theBoxControl
to improve consistency of UXonKeyDown
handler to smooth out the UX as wellThe text was updated successfully, but these errors were encountered: