gutenberg
gutenberg copied to clipboard
Numeric input fields retain partial values when cleared via backspace across multiple controls
Description
When editing numeric values in various block controls (e.g., margin, border radius), clearing the value using backspace can result in partial values being retained instead of fully clearing the field.
This behavior appears to affect multiple controls, suggesting an issue with shared input components.
Step-by-step reproduction instructions
- Add a block (e.g., Paragraph).
- Set a numeric value (e.g., 60) in:
- Margin
- Border radius
- Use backspace to clear the value.
- Observe:
- Intermediate value (6) is applied.
- Final state may retain this partial value instead of clearing.
Screenshots, screen recording, code snippet
Video showing issue => Click Here
Environment info
WordPress Version : 6.9.4 Gutenberg Version : 22.5.0-rc.1 OS : macOS Tahoe 26.3.1
Please confirm that you have searched existing issues in the repo.
- [x] Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- [x] Yes
Please confirm which theme type you used for testing.
- [x] Block
- [ ] Classic
- [ ] Hybrid (e.g. classic with theme.json)
- [ ] Not sure