mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
fix(slider): potential drag event handler leak
This commit is contained in:
parent
8f1a449ab9
commit
3982ac26ed
@ -9,7 +9,8 @@ import {
|
||||
Transition,
|
||||
PropType,
|
||||
CSSProperties,
|
||||
ComponentPublicInstance
|
||||
ComponentPublicInstance,
|
||||
onBeforeUnmount
|
||||
} from 'vue'
|
||||
import {
|
||||
VBinder,
|
||||
@ -527,6 +528,9 @@ export default defineComponent({
|
||||
}
|
||||
void nextTick(syncPosition)
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
stopDragging()
|
||||
})
|
||||
const cssVarsRef = computed(() => {
|
||||
const {
|
||||
self: {
|
||||
|
Loading…
Reference in New Issue
Block a user