Skip to content

Commit

Permalink
[TimePicker] Prevent mouse events after touchend event (@arthurbald…
Browse files Browse the repository at this point in the history
…uini) (#15430)

Co-authored-by: Arthur Suh Balduini <34691066+arthurbalduini@users.noreply.github.com>
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
  • Loading branch information
3 people authored Dec 3, 2024
1 parent da530c7 commit 24927a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/x-date-pickers/src/TimeClock/Clock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ export function Clock<TDate extends PickerValidDate>(inProps: ClockProps<TDate>)
setTime(event, 'finish');
isMoving.current = false;
}
event.preventDefault();
};

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

0 comments on commit 24927a7

Please sign in to comment.