mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 04:34:14 +00:00
fix(mobile): popup flicker when closing
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user