Skip to content

Commit

Permalink
Only update the value if the shipping time is between the min and max…
Browse files Browse the repository at this point in the history
… allowed
  • Loading branch information
jorgemd24 committed Sep 17, 2024
1 parent e487f6a commit 8652d24
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ const Stepper = ( {
}

const onBlur = ( e, numberValue ) => {
handleBlur( numberValue, field );
if ( numberValue >= min && numberValue <= max ) {
handleBlur( numberValue, field );
}
};

return (
Expand Down

0 comments on commit 8652d24

Please sign in to comment.