Skip to content

Commit 7477019

Browse files
authored
Merge pull request #416 from ownego/hotFix/dropzone-click-event
Update: Wrong onclick emits check for currentInstance
2 parents c5a598e + fa90f52 commit 7477019

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)