Skip to content

Commit

Permalink
fix(core): drawer click button to close & open
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalosard committed Oct 6, 2022
1 parent 678a719 commit 0315d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Drawer {
const closestElement = target.closest('#div-container');
const btn = target.closest('#drawer-btn');

if (closestElement !== this.divElement && target !== btn) {
if (evt.target.type !== "button" && closestElement !== this.divElement && target !== btn) {
this.show = false;
}
}
Expand Down

0 comments on commit 0315d74

Please sign in to comment.