Skip to content

fix: Fix wrong height on toast update - #750

Open
patryksliwinski wants to merge 2 commits into
emilkowalski:mainfrom
patryksliwinski:fix-wrong-height-on-toast-update
Open

fix: Fix wrong height on toast update#750
patryksliwinski wants to merge 2 commits into
emilkowalski:mainfrom
patryksliwinski:fix-wrong-height-on-toast-update

Conversation

@patryksliwinski

@patryksliwinski patryksliwinski commented Mar 10, 2026

Copy link
Copy Markdown

I've noticed that when toasts with expanded="false" are updated, their height is recalculated incorrectly. This happens because the scale is not cleared before reading the height, resulting in an inaccurate measurement.

It can lead to such behavior after expanding the toasts later
image

The provided fix may still fail if the height is calculated within the 400ms transition window, but I don't currently see a better solution.

@vercel

vercel Bot commented Mar 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sonner Error Error Mar 11, 2026 9:17am

Request Review

@patryksliwinski

Copy link
Copy Markdown
Author

@emilkowalski Would it be possible to apply the same patch to the previous 1.7.4 version, effectively creating a 1.7.5 release? I can submit a pull request for this, but I wanted to check first, is it possible to release a 1.7.5 version? In our company, we're still on 1.7.4 and can't upgrade to 2.0.0 right now due to breaking changes. A fix in 1.7.5 would be really helpful for us.

@patryksliwinski
patryksliwinski marked this pull request as draft March 11, 2026 09:14
@patryksliwinski
patryksliwinski marked this pull request as ready for review March 11, 2026 09:17
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