Skip to content

Commit

Permalink
Update function
Browse files Browse the repository at this point in the history
  • Loading branch information
gavhuang committed Jul 17, 2023
1 parent d8367e3 commit b5fbd5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions playbook/app/pb_kits/playbook/pb_dialog/dialogHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ const dialogHelper = () => {
if (dialogParentDataset.overlayClick === "overlay_close") return

const clickedOutsideDialogBox = event.target.classList.contains("pb_dialog_rails")
const closeDialog = () => dialogElement.close()

if (clickedOutsideDialogBox) {
closeDialog()
dialogElement.close()
}
})
})
Expand Down

0 comments on commit b5fbd5d

Please # to comment.