Skip to content

Commit

Permalink
Fix primefaces#3943: Remove preventDefault from touch events
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Jan 10, 2023
1 parent 71b4f6e commit cfc5037
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/lib/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ export const InputNumber = React.memo(
const onUpButtonTouchStart = (event) => {
if (!props.disabled && !props.readOnly) {
repeat(event, null, 1);
event.preventDefault();
}
};

Expand Down Expand Up @@ -259,7 +258,6 @@ export const InputNumber = React.memo(
const onDownButtonTouchStart = (event) => {
if (!props.disabled && !props.readOnly) {
repeat(event, null, -1);
event.preventDefault();
}
};

Expand Down

0 comments on commit cfc5037

Please sign in to comment.