Skip to content

Commit 24927a7

Browse files
github-actions[bot]arthurbalduiniLukasTy
authored
[TimePicker] Prevent mouse events after touchend event (@arthurbalduini) (#15430)
Co-authored-by: Arthur Suh Balduini <[email protected]> Co-authored-by: Lukas Tyla <[email protected]>
1 parent da530c7 commit 24927a7

File tree

1 file changed

+1
-0
lines changed
  • packages/x-date-pickers/src/TimeClock

1 file changed

+1
-0
lines changed

packages/x-date-pickers/src/TimeClock/Clock.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export function Clock<TDate extends PickerValidDate>(inProps: ClockProps<TDate>)
271271
setTime(event, 'finish');
272272
isMoving.current = false;
273273
}
274+
event.preventDefault();
274275
};
275276

276277
const handleMouseMove = (event: React.MouseEvent<HTMLDivElement>) => {

0 commit comments

Comments
 (0)