An opinionated toast component for React.
allow users to select text after swipe gesture (#587)
Emil Kowalskib0c51efad83d
diff --git a/src/index.tsx b/src/index.tsxindex 585903d..e8ddbc6 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -340,13 +340,13 @@ const Toast = (props: ToastProps) => {deleteToast();setSwipeOut(true);- setIsSwiped(false);+return;} else {toastRef.current?.style.setProperty('--swipe-amount-x', `0px`);toastRef.current?.style.setProperty('--swipe-amount-y', `0px`);}-+ setIsSwiped(false);setSwiping(false);setSwipeDirection(null);}}