Skip to content

Commit

Permalink
Add boolean param to .close()
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJDev committed Oct 17, 2023
1 parent 8e0443b commit dd72f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/primer/alpha/modal_dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function clickHandler(event: Event) {
if (dialog instanceof ModalDialogElement) {
const dialogIndex = overlayStack.findIndex(ele => ele.id === dialogId)
overlayStack.splice(dialogIndex, 1)
dialog.close()
dialog.close(button.hasAttribute('data-submit-dialog-id'))
}
}
}
Expand Down

0 comments on commit dd72f45

Please sign in to comment.