Open pajohns opened 8 months ago
Update: I was able to work around this problem by removing the {#if _isMounted} line from the Modal.svelte
file. It seems that it's a svelte issue with the introstart
and introend
events not firing if it's nested within double if statements that are being changed at the same time - race condition maybe? I moved them into a single if
{#if isOpen && _isMounted}
I have the following modal component...
When observing the console I note that when the modal is opened there are no log entries, however, when closing both the 'closing' and 'close' events are fired. I notice that they're tied to the
on:introstart
andon:introend
events on the primary modal container but I'm unsure why they wouldn't be firing.