fix[slider]: prevent triggering blur when focus shifts from slider handle to slider container
parent
3db5e191b8
commit
2a14d594c9
|
@ -166,6 +166,12 @@ export default function createSlider(Component) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onBlur(e) {
|
onBlur(e) {
|
||||||
|
// Prevent triggering blur when focus shifts from the slider handle to the slider container.
|
||||||
|
// This avoids ending the drag operation if the user clicks within the slider area.
|
||||||
|
if(this.sliderRef === e.relatedTarget) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.dragTrack) {
|
if (!this.dragTrack) {
|
||||||
this.onEnd();
|
this.onEnd();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue