gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Numeric input fields retain partial values when cleared via backspace across multiple controls

Open dpmehta opened this issue 7 months ago • 0 comments

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

  1. Add a block (e.g., Paragraph).
  2. Set a numeric value (e.g., 60) in:
    • Margin
    • Border radius
  3. Use backspace to clear the value.
  4. 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

dpmehta avatar Apr 08 '26 07:04 dpmehta