kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
84 stars 22 forks source link

[BUG] Modal confirmation alert shows double in routed modals #3465

Closed KemalPajevic closed 3 months ago

KemalPajevic commented 4 months ago

Describe the bug

When setting canDismiss with an AlertConfig in a routed modal, you get a confirmation alert when trying to close the modal. If you confirm closing in the alert, the modal closes and immediately you get the confirmation alert again. The issue does not happen when the modal was opened using ModalController.

Describe how to reproduce the bug

Please complete the following information:

Are there any additional context?

Before the modal was closed:

Screenshot 2024-05-06 at 16 11 30

After the modal was closed:

Screenshot 2024-05-06 at 16 11 41

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Verification

To make sure the bug is not intended behaviour; it should be verified by a member of team Kirby before moving on to implementation.

Implementation

The contributor who wants to implement this issue should:

Review

Once the issue has been implemented and is ready for review: