Skip to content

fix(message): unmount faded toasts (they block clicks), allow node 21+ - #4

Open
MaxAdams98 wants to merge 1 commit into
boycce:masterfrom
MaxAdams98:fix/toast-pointer-events
Open

fix(message): unmount faded toasts (they block clicks), allow node 21+#4
MaxAdams98 wants to merge 1 commit into
boycce:masterfrom
MaxAdams98:fix/toast-pointer-events

Conversation

@MaxAdams98

@MaxAdams98 MaxAdams98 commented Aug 23, 2026

Copy link
Copy Markdown

Two small fixes found while building allproof-web on nitro:

Toast pointer-events bug — the auto-hide timeout in message.tsx only sets visible=false and never clears messageObject, so the faded toast stays mounted with pointer-events-auto inside the fixed inset-0 z-[101] wrapper. That leaves an invisible ~350px box over the page (top-center placements sit exactly over a sticky header) which swallows clicks until a refresh. Only the manual close button unmounted it. Fix: the timeout now calls hide(), which unmounts the toast 250ms after the fade — same path as the close button.

Engines — relaxed "node": ">=18 <21" to ">=18"; apps are running this on node 22/24 without issues and the cap only produces install warnings.

The auto-hide timeout only set visible=false, leaving the toast mounted with
pointer-events-auto inside the fixed z-[101] wrapper — an invisible box that
swallowed clicks on anything underneath (e.g. a sticky header) until refresh.
Reuse hide() so the toast unmounts after its fade, matching the close button.

Also relax engines to >=18: apps are running node 22/24 against this fine.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant