visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
757 stars 85 forks source link

Conditional close #78

Closed KennetSundien closed 2 years ago

KennetSundien commented 5 years ago

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

KennetSundien commented 5 years ago

I Also fixed an errror when using serveral modals in one page. (EventStorm)