I Have created an attribute called conditional-close,
that takes a promise.
My use case:
When a user wants to exit the modal, either by pressing escape, on the overlay or on the X button,
The user must be presented with a dialog and depending on the user's answer the dialog will either remain open or close.
I have added a working example on the main.vue page and explained the attribute in the attribute section of main.vue
I Have created an attribute called conditional-close, that takes a promise.
My use case: When a user wants to exit the modal, either by pressing escape, on the overlay or on the X button, The user must be presented with a dialog and depending on the user's answer the dialog will either remain open or close.
I have added a working example on the main.vue page and explained the attribute in the attribute section of main.vue