Skip to content

Commit

Permalink
fix: watch open logic lost after build (vbenjs#3421)
Browse files Browse the repository at this point in the history
* fix: watch open logic lost after build

* fix: drawer for better understand
  • Loading branch information
xachary authored Dec 16, 2023
1 parent 404a472 commit 089a989
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Drawer/src/BasicDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@
(open) => {
nextTick(() => {
emit('open-change', open);
instance && drawerInstance.emitOpen?.(open, instance.uid);
if (instance && drawerInstance.emitOpen) {
drawerInstance.emitOpen(open, instance.uid);
}
});
},
);
Expand Down

0 comments on commit 089a989

Please sign in to comment.