From b7bc7c4e5d60c260a22439c20598bd81ee58bf7a Mon Sep 17 00:00:00 2001 From: Gheorghe Pinzaru Date: Tue, 14 Jul 2020 12:15:56 +0300 Subject: [PATCH] Don't re-open bottom sheet if now closing Signed-off-by: Gheorghe Pinzaru --- src/quo/components/bottom_sheet/view.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/quo/components/bottom_sheet/view.cljs b/src/quo/components/bottom_sheet/view.cljs index 10c46d7211..ff90afbde6 100644 --- a/src/quo/components/bottom_sheet/view.cljs +++ b/src/quo/components/bottom_sheet/view.cljs @@ -157,10 +157,10 @@ (fn [] (when (and (> height min-height) @visible) - (animated/block - [(animated/stop-clock clock) - (animated/set open-snap-point (* -1 sheet-height)) - (animated/set manual-open 1)]))) + (animated/cond* (animated/not* manual-close) + [(animated/stop-clock clock) + (animated/set open-snap-point (* -1 sheet-height)) + (animated/set manual-open 1)]))) [height @visible]) ;; NOTE(Ferossgp): Remove me when RNGH will suport modal (rn/use-back-handler