carbon-design-system / carbon-components-svelte

Svelte implementation of the Carbon Design System
https://svelte.carbondesignsystem.com
Apache License 2.0
2.68k stars 261 forks source link

Modal only fires on:open if dialog was not closed/cancelled before #1985

Open johnhce opened 2 months ago

johnhce commented 2 months ago

If I add a Modal to my app, the on:open event is fired before the dialog opens. If I then click Close or Cancel and then re-open the modal later, on:open will not fire. If I click Confirm, on:open will fire the next time I open the modal. It seems like on:open should fire every time I open the modal regardless of how it was closed before.

Using version 0.85.0