Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
NumberControl: constain value also on the UPDATE action
  • Loading branch information
ciampo committed Mar 17, 2022
commit b2f2138ca76c31810e33ec1a7fa7734f21ef7268
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 @@ -152,7 +152,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