Skip to content

Commit

Permalink
NumberControl: constain value also on the UPDATE action
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Mar 3, 2022
1 parent 5216b30 commit a5fd93d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/number-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '';

Expand Down

0 comments on commit a5fd93d

Please sign in to comment.