From a5fd93dee1591c9c4e512fb4a585e7408fc519f4 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Thu, 3 Mar 2022 12:57:23 +0100 Subject: [PATCH] `NumberControl`: constain value also on the `UPDATE` action --- packages/components/src/number-control/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/components/src/number-control/index.js b/packages/components/src/number-control/index.js index 5068715190c952..2eacbdba5be8b1 100644 --- a/packages/components/src/number-control/index.js +++ b/packages/components/src/number-control/index.js @@ -151,7 +151,8 @@ export function NumberControl( */ if ( type === inputControlActionTypes.PRESS_ENTER || - type === inputControlActionTypes.COMMIT + type === inputControlActionTypes.COMMIT || + type === inputControlActionTypes.UPDATE ) { const applyEmptyValue = required === false && currentValue === '';