Fix: Toasts verschwinden jetzt (doppeltes ease + Fallback-Timeout)
CSS: var(--transition-normal) enthielt bereits 'ease', dadurch 'toast-out 200ms ease ease' = ungueltig, animationend feuert nie. JS: setTimeout-Fallback nach 300ms als Sicherheitsnetz. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c37befd82b
commit
5a0be0e886
2 changed files with 4 additions and 3 deletions
|
|
@ -29,7 +29,8 @@ const UI = (() => {
|
|||
|
||||
function remove(el) {
|
||||
el.classList.add('removing');
|
||||
el.addEventListener('animationend', () => el.remove(), { once: true });
|
||||
const fallback = setTimeout(() => el.remove(), 300);
|
||||
el.addEventListener('animationend', () => { clearTimeout(fallback); el.remove(); }, { once: true });
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue