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
{{ message }}
Repository navigation
[Bug] Toast: the auto-hide pause is one flag, so a toast can hide while focus is inside it #8969
A toast's auto-hide pause is a single flag, isPausedRef (Toast.tsx:188-233). Every pause source sets it and every end of one clears it: pointer enter/leave, focus in/out (capture), touch gestures and window blur/focus (Toast.tsx:253-254, 293-296). So the timer restarts when any one condition ends while another still holds:
Tab or click into a toast's action, then move the pointer off the toast: mouseleave resumes the timer while focus is still inside, and the toast can hide (and take focus with it) while the user is on its action.
Hover a toast, switch windows and back: window focus resumes the timer while the pointer is still over it.
Also, a toast raised while the window is already blurred starts its timer at once (no document.hasFocus() check at start), so it can expire before the user ever returns to the tab.
Toast's spec records both under FR2's implementation gaps. FR2 and AR3 require the timer to pause while the user reads or interacts (WCAG 2.2.1 Timing Adjustable).
Expected: track each pause source separately and resume only when none holds; start the timer paused when the document does not have focus.
Activity