Skip to content

Commit

Permalink
[@mantine/modals] Fix closeModal not working correctly when called in…
Browse files Browse the repository at this point in the history
…side nested modals (#2436)
  • Loading branch information
lawff committed Sep 16, 2022
1 parent 5cf81d2 commit e478816
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ export function createUseExternalEvents<Handlers extends Record<string, (detail:
Object.keys(handlers).forEach((eventKey) => {
window.removeEventListener(eventKey, handlers[eventKey]);
});
}, []);
}, [handlers]);
}

function createEvent<EventKey extends keyof Handlers>(event: EventKey) {
Expand Down

0 comments on commit e478816

Please sign in to comment.