Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Modal on:opening and on:open events are not firing #578

@pajohns

Description

@pajohns

I have the following modal component...

<script <script>
    import { Modal } from "sveltestrap";
</script>

<Modal
    on:open={() => console.log('open')}
    on:opening={() => console.log('opening')}
    on:closing={() => console.log('closing')}
    on:close={() => console.log('close')}
    size="xl"
    isOpen={isOpen}
    contentClassName="modal-xl"
>

    <!-- Modal Content -->

</Modal>

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 and on:introend events on the primary modal container but I'm unsure why they wouldn't be firing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: LowBug, issue, or pull request is a P3Severity: LowBug or issue is of low severityType: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions