Skip to content

Commit 35ddb0c

Browse files
committed
chore: prevent default of mouse down
1 parent 6a2897b commit 35ddb0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/InputNumber.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ const InputNumber = React.forwardRef<InputNumberRef, InputNumberProps>((props, r
598598
const onInternalMouseDown: React.MouseEventHandler<HTMLDivElement> = (event) => {
599599
if (inputRef.current && event.target !== inputRef.current) {
600600
inputRef.current.focus();
601+
event.preventDefault();
601602
}
602603

603604
onMouseDown?.(event);

0 commit comments

Comments
 (0)