fix(mobile): popup flicker when closing

This commit is contained in:
charlie
2025-08-11 11:07:29 +08:00
parent 5c3d04ca6d
commit 44bb3494b9

View File

@@ -80,13 +80,14 @@
{:presented (boolean open?)
:onPresentedChange (fn [v?]
(when (false? v?)
(mobile-state/set-popup! nil)
(js/setTimeout
#(mobile-state/set-popup! nil) 300)
(state/clear-edit!)
(state/pub-event! [:mobile/keyboard-will-hide])))}
(:modal-props opts))
(silkhq/bottom-sheet-portal
(silkhq/bottom-sheet-view
{:class (str "app-silk-popup-sheet-view as-" (name (or (:type opts) "default")))
(:modal-props opts))
(silkhq/bottom-sheet-portal
(silkhq/bottom-sheet-view
{:class (str "app-silk-popup-sheet-view as-" (name (or (:type opts) "default")))
:inertOutside false
:onTravelEnd (fn []
(when quick-add?