inovex / elements

Lovingly crafted ui components based on web components. Works well with all Frameworks - including Angular, React and Vue.
https://elements.inovex.de
MIT License
69 stars 9 forks source link

ino-snackbar: component timeout triggered too early in storybook #1222

Open TobiasHeimGalindo opened 7 months ago

TobiasHeimGalindo commented 7 months ago

Description (might be fixed by #1219)

After upgrading Storybook, I've encountered an issue with the ino-snackbar component: it initiates the timeout property upon refresh, despite being set to display: none.This behavior occurs because the component still renders in the background. As a result, depending on the timing of the button trigger, the snackbar can either close immediately or fail to open at all if triggered too late. Additionally, the stay visible on hover story also needs to be adjusted once the timeout works again. Attached is a video demonstrating the issue.

https://github.com/inovex/elements/assets/81302108/2fc31651-6ab5-4b63-9fac-7055b7b6589a

janivo commented 6 months ago

might be fixed by #1219, blocked until then