-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading icon remains visible after promise resolution when using the loading-icon
slot
#111
Comments
Hi, |
Fix:Replace the following lines vue-sonner/src/packages/Toast.vue Lines 77 to 91 in ada95d7
with <component :is="toast.icon" v-if="toast.icon" />
<template v-else>
<slot v-if="toastType === 'loading'" name="loading-icon" />
<slot v-else-if="toastType === 'success'" name="success-icon" />
<slot v-else-if="toastType === 'error'" name="error-icon" />
<slot v-else-if="toastType === 'warning'" name="warning-icon" />
<slot v-else-if="toastType === 'info'" name="info-icon" />
</template> |
@pcoterecollective Hi there, thanks for the fix! Please create a pull request so we can merge it. |
@xiaoluoboding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Type
Description
Loading icon remains visible after promise resolution when using the
loading-icon
slotExpected result
Loading icon should disappear on promise resolution when using the
loading-icon
slotContext
Steps to reproduce
Create this simple Vue 3 app and click on the button
The text was updated successfully, but these errors were encountered: