We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45d8940 commit 8e64fb8Copy full SHA for 8e64fb8
src/index.tsx
@@ -167,9 +167,15 @@ const Toast = (props: ToastProps) => {
167
if (!mounted) return;
168
const toastNode = toastRef.current;
169
const originalHeight = toastNode.style.height;
170
+ const originalTransition = toastNode.style.transition;
171
+ const originalTransform = toastNode.style.transform;
172
toastNode.style.height = 'auto';
173
+ toastNode.style.transition = 'none';
174
+ toastNode.style.transform = 'none';
175
const newHeight = toastNode.getBoundingClientRect().height;
176
toastNode.style.height = originalHeight;
177
+ toastNode.style.transform = originalTransform;
178
+ toastNode.style.transition = originalTransition;
179
180
setInitialHeight(newHeight);
181
0 commit comments