Skip to content

Commit

Permalink
Revert "Blur input on thumb pointerUp"
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed May 9, 2024
1 parent 79ebc32 commit e91d3a8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/mui-base/src/useSlider2/useSliderThumb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,13 @@ export function useSliderThumb(parameters: UseSliderThumbParameters) {
return mergeReactProps(externalProps, {
'data-index': index,
id: idParam,
onPointerOver() {
onPointerOver(/* event: React.PointerEvent<HTMLSpanElement> */) {
// const index = Number(event.currentTarget.getAttribute('data-index'));
setOpen(index);
},
onPointerLeave() {
setOpen(-1);
},
onPointerUp() {
const { current: input } = inputRef;
input?.blur();
},
ref: handleRef,
style: {
...getThumbStyle(),
Expand Down

0 comments on commit e91d3a8

Please sign in to comment.