Skip to content

Commit

Permalink
pkp/pkp-lib#10444 Update param name for onClose function in Dialog co…
Browse files Browse the repository at this point in the history
…mponent
  • Loading branch information
blesildaramirez committed Nov 13, 2024
1 parent 3a5ee2c commit fb018d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Modal/Dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ const emit = defineEmits(['close']);
const isLoading = ref(false);
function onClose(evtType) {
// Prevent closing the modal on outside click or "Esc" key if isDismissible is false
if (!props.isDismissible && evtType === 'default') {
function onClose(triggerOrigin) {
// Prevent closing the modal on outside clicks or "Esc" key presses if isDismissible is false
if (!props.isDismissible && triggerOrigin === 'default') {
return;
}
Expand Down

0 comments on commit fb018d0

Please sign in to comment.