Skip to content

Commit

Permalink
pkp/pkp-lib#9932 Fixing legacyCloseHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed May 21, 2024
1 parent 8f5158a commit a5468c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/modalStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ export const useModalStore = defineStore('modal', () => {
// to trigger handler modalClose explicitelly
if (
triggerLegacyCloseHandler &&
modalToClose.value?.props?.options?.modalHandler
modalToClose.value?.props?.legacyOptions?.modalHandler
) {
modalToClose.value?.props?.options?.modalHandler.modalClose();
modalToClose.value?.props?.legacyOptions?.modalHandler.modalClose();
}
}

Expand Down

0 comments on commit a5468c3

Please sign in to comment.