Skip to content

Commit

Permalink
Merge pull request #509 from Tencent/fix/drawer-focus
Browse files Browse the repository at this point in the history
fix(drawer): 修复drawer组件destroyOnClose为true时报错问题
  • Loading branch information
chaishi committed Mar 7, 2022
2 parents 6199ea8 + f17c140 commit b6a2492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default mixins(ActionMixin, getConfigReceiverMixins<Vue, DrawerConfig>('d
visible: {
handler(val) {
if (val) {
(this.$refs.drawerContainer as HTMLDivElement).focus?.();
(this.$refs.drawerContainer as HTMLDivElement)?.focus?.();
}

this.handleScrollThrough(val);
Expand Down

0 comments on commit b6a2492

Please sign in to comment.