mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [slider] emit change event on slider marker down (#20383)
This commit is contained in:
@@ -189,7 +189,10 @@ export const useSlide = (
|
||||
|
||||
const onSliderMarkerDown = (position: number) => {
|
||||
if (sliderDisabled.value || initData.dragging) return
|
||||
setPosition(position)
|
||||
const buttonRef = setPosition(position)
|
||||
if (buttonRef) {
|
||||
emitChange()
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user