Closed ahuth closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/timo/react-hot-toast/5RWtFzXuFy5XtZSX2azZYxfq9RVS
✅ Preview: https://react-hot-toast-git-fork-ahuth-patch-1-timo1.vercel.app
Fixes https://github.com/timolins/react-hot-toast/issues/107.
In jsdom the rect will always have a height of 0, causing an infinite loop due to the
t.height
check.Fixed by checking for
t.height != null
instead. That way0
will be considered a valid height value, but it'll still initialize correctly whenundefined
ornull
.