From ea40f6f77ae631e73a5e1a73472ebe511459b2aa Mon Sep 17 00:00:00 2001 From: soykje Date: Tue, 11 Jun 2024 15:47:10 +0200 Subject: [PATCH] fix(snackbar): adds timer pause during swipe gesture --- package-lock.json | 1 + packages/components/snackbar/src/SnackbarItem.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package-lock.json b/package-lock.json index 83180a39af..269acdd066 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2301,6 +2301,7 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { diff --git a/packages/components/snackbar/src/SnackbarItem.tsx b/packages/components/snackbar/src/SnackbarItem.tsx index 0ad4f7a19c..1fca5acd19 100644 --- a/packages/components/snackbar/src/SnackbarItem.tsx +++ b/packages/components/snackbar/src/SnackbarItem.tsx @@ -91,8 +91,11 @@ export const SnackbarItem = forwardRef { ;['left', 'right'].includes(`${direction}`) && state.close(toast.key) + state.resumeAll() }, })