Skip to content

Commit fa90f52

Browse files
committed
Update: Wrong onclick emits check for currentInstance
1 parent c5a598e commit fa90f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DropZone/DropZone.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ const triggerFileDialog = () => {
366366
const handleClick = (event: MouseEvent) => {
367367
if (props.disabled) return;
368368
369-
if (currentInstance?.attrs.onClick) {
369+
if (currentInstance?.vnode?.props?.onClick) {
370370
emits('click', event);
371371
} else {
372372
open();

0 commit comments

Comments
 (0)