Skip to content

Commit

Permalink
fix: prevent exponent input for cart items quantity fields (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Orlov authored Jun 21, 2023
1 parent c4678d5 commit f579930
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function onFocusOut() {
}
function onKeydown(e: KeyboardEvent) {
if (e.key === "e" || e.key === "-" || e.key === "." || e.key === ",") {
if (e.key.toLowerCase() === "e" || e.key === "-" || e.key === "." || e.key === ",") {
e.preventDefault();
}
}
Expand Down

0 comments on commit f579930

Please sign in to comment.