fix(mobile): modal pop window position

This commit is contained in:
leizhe
2022-01-07 18:08:43 +08:00
committed by Tienson Qin
parent e627d5ddcf
commit 61f7653e79
2 changed files with 5 additions and 9 deletions

View File

@@ -2524,8 +2524,7 @@
(commands/simple-insert!
parent-id bounds
{:backward-pos backward-pos
:check-fn (fn [_ _ new-pos]
(reset! commands/*slash-caret-pos new-pos)
:check-fn (fn []
(commands/handle-step [:editor/search-page]))}))]
(state/set-editor-show-page-search! false)
(let [selection (get-selection-and-format)
@@ -2556,8 +2555,7 @@
(commands/simple-insert!
parent-id bounds
{:backward-pos backward-pos
:check-fn (fn [_ _ new-pos]
(reset! commands/*slash-caret-pos new-pos)
:check-fn (fn []
(commands/handle-step [:editor/search-block]))}))]
(state/set-editor-show-block-search! false)
(if-let [embed-ref (thingatpt/embed-macro-at-point input)]