@@ -349,10 +349,10 @@ const Slider = React.forwardRef(function Slider(props, ref) {
349
349
setFocusVisible ( true ) ;
350
350
351
351
if ( onChange ) {
352
- onChange ( newValue ) ;
352
+ onChange ( event , newValue ) ;
353
353
}
354
354
if ( onChangeCommitted ) {
355
- onChangeCommitted ( newValue ) ;
355
+ onChangeCommitted ( event , newValue ) ;
356
356
}
357
357
} ) ;
358
358
@@ -396,7 +396,7 @@ const Slider = React.forwardRef(function Slider(props, ref) {
396
396
setFocusVisible ( true ) ;
397
397
398
398
if ( onChange ) {
399
- onChange ( newValue ) ;
399
+ onChange ( event , newValue ) ;
400
400
}
401
401
} ) ;
402
402
const handleTouchEnd = useEventCallback ( event => {
@@ -409,7 +409,7 @@ const Slider = React.forwardRef(function Slider(props, ref) {
409
409
const newValue = getNewValue ( finger ) ;
410
410
411
411
if ( onChangeCommitted ) {
412
- onChangeCommitted ( newValue ) ;
412
+ onChangeCommitted ( event , newValue ) ;
413
413
}
414
414
415
415
touchId . current = undefined ;
@@ -434,7 +434,7 @@ const Slider = React.forwardRef(function Slider(props, ref) {
434
434
setFocusVisible ( true ) ;
435
435
436
436
if ( onChange ) {
437
- onChange ( newValue ) ;
437
+ onChange ( event , newValue ) ;
438
438
}
439
439
const doc = ownerDocument ( sliderRef . current ) ;
440
440
doc . addEventListener ( 'mousemove' , handleTouchMove ) ;
@@ -456,7 +456,7 @@ const Slider = React.forwardRef(function Slider(props, ref) {
456
456
setFocusVisible ( true ) ;
457
457
458
458
if ( onChange ) {
459
- onChange ( newValue ) ;
459
+ onChange ( event , newValue ) ;
460
460
}
461
461
462
462
const doc = ownerDocument ( sliderRef . current ) ;
0 commit comments