diff --git a/src/components/Drawer/src/BasicDrawer.vue b/src/components/Drawer/src/BasicDrawer.vue index 05bd2fba19d..ba1d5e516d5 100644 --- a/src/components/Drawer/src/BasicDrawer.vue +++ b/src/components/Drawer/src/BasicDrawer.vue @@ -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); + } }); }, );