You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am using skeleton modals for the app dev. I have a confirmation message shown and then error message triggered from within “response”. The message is not shown, but when the next modal is triggered - then this one is shown first.
Expected Behavior
Modal confirmation is shown.
Steps To Reproduce
Show confirmation modal
Trigger another (maybe custom modal) from within response.
Trigger another one outside of response
Link to Reproduction / Stackblitz
No response
More Information
No response
The text was updated successfully, but these errors were encountered:
@ktarmyshov given this sounds like a very specific series of steps, would you mind creating a minimal reproduction of this? It might be helpful for troubleshooting this.
Hi, Chris, below is the code. This appears only if there is a small delay (not too short and not too long) - I added a workaround for myself show modal error after 200ms delay - then it works. I suppose this might be linked to animations of disappearing - just a guess.
<scriptlang="ts">importtype{ ModalSettings }from'@skeletonlabs/skeleton';import{getModalStore}from'@skeletonlabs/skeleton';functiondelay(ms: number){returnnewPromise((resolve)=>setTimeout(resolve,ms));}constmodalStore=getModalStore();constmodal: ModalSettings={type: 'confirm',// Datatitle: 'Please Confirm',body: 'Are you sure you wish to proceed?',// TRUE if confirm pressed, FALSE if cancel pressedresponse: async(r: boolean)=>{// Some action is happening...awaitdelay(100);// Error occurredconstmodalError: ModalSettings={type: 'alert',// Datatitle: 'Error title',body: 'Error Body'};modalStore.trigger(modalError);}};functionhandleSubmit(){modalStore.trigger(modal);}</script><formmethod="post"on:submit|preventDefault={handleSubmit}><!--<inputtype="text"/>--><button>Actionbutton</button></form>
Current Behavior
Hi, I am using skeleton modals for the app dev. I have a confirmation message shown and then error message triggered from within “response”. The message is not shown, but when the next modal is triggered - then this one is shown first.
Expected Behavior
Modal confirmation is shown.
Steps To Reproduce
Show confirmation modal
Trigger another (maybe custom modal) from within response.
Trigger another one outside of response
Link to Reproduction / Stackblitz
No response
More Information
No response
The text was updated successfully, but these errors were encountered: