From e91d3a8a659adec824a1763eec436f3053547ccd Mon Sep 17 00:00:00 2001 From: Albert Yu Date: Thu, 9 May 2024 16:42:25 +0800 Subject: [PATCH] Revert "Blur input on thumb pointerUp" 79ebc3271884f2c79aa66ceb2610c02e0ab7ba6a --- packages/mui-base/src/useSlider2/useSliderThumb.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/mui-base/src/useSlider2/useSliderThumb.ts b/packages/mui-base/src/useSlider2/useSliderThumb.ts index 9d5801b596..bb9ff4d29f 100644 --- a/packages/mui-base/src/useSlider2/useSliderThumb.ts +++ b/packages/mui-base/src/useSlider2/useSliderThumb.ts @@ -79,16 +79,13 @@ export function useSliderThumb(parameters: UseSliderThumbParameters) { return mergeReactProps(externalProps, { 'data-index': index, id: idParam, - onPointerOver() { + onPointerOver(/* event: React.PointerEvent */) { + // const index = Number(event.currentTarget.getAttribute('data-index')); setOpen(index); }, onPointerLeave() { setOpen(-1); }, - onPointerUp() { - const { current: input } = inputRef; - input?.blur(); - }, ref: handleRef, style: { ...getThumbStyle(),