fix(Toast): prevent progress bar to blink on leave

This commit is contained in:
Benjamin Canac
2024-04-16 18:41:58 +02:00
parent 7aa353d8cc
commit 83049fd23e

View File

@@ -133,6 +133,6 @@ defineExpose({
</ToastClose>
</div>
<div v-if="remaining && duration" :class="ui.progress()" :style="{ width: `${remaining / duration * 100}%` }" />
<div v-if="remaining > 0 && duration" :class="ui.progress()" :style="{ width: `${remaining / duration * 100}%` }" />
</ToastRoot>
</template>