ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

fix[slider]: prevent triggering blur when focus shifts from slider handle to slider container

Open zerescas opened this issue 9 months ago • 3 comments
trafficstars

Changes: Modified the onBlur handler in createSlider.js to check if the focus is shifting from the slider handle to the slider container. If the e.relatedTarget equals the slider container (this.sliderRef), the blur event is prevented from propagating, thereby avoiding an unintended termination of the drag operation.

https://github.com/user-attachments/assets/8868bbee-8075-4281-8077-ffaa01faa48a

zerescas avatar Feb 13 '25 07:02 zerescas