fix(components): [color-picker] element event binding error (#9061)

This commit is contained in:
btea
2022-07-27 20:02:29 +08:00
committed by GitHub
parent 7672fc2118
commit 7da11bc2e6

View File

@@ -43,6 +43,6 @@ export default function (element: HTMLElement, options: IOptions) {
options.start?.(event)
}
document.addEventListener('mousedown', downFn)
document.addEventListener('touchstart', downFn)
element.addEventListener('mousedown', downFn)
element.addEventListener('touchstart', downFn)
}