瀏覽代碼

fix(editor): template expansion if ac-ui is blurred

See-also: #8728
Andelf 2 年之前
父節點
當前提交
deba094724
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/frontend/handler/editor.cljs

+ 2 - 2
src/main/frontend/handler/editor.cljs

@@ -2139,7 +2139,7 @@
                     sorted-blocks
                     (drop 1 sorted-blocks))]
        (when element-id
-         (insert-command! element-id "" format {}))
+         (insert-command! element-id "" format {:end-pattern commands/command-trigger}))
        (let [exclude-properties [:id :template :template-including-parent]
              content-update-fn (fn [content]
                                  (->> content
@@ -2696,7 +2696,7 @@
             (delete-concat current-block)))
 
         :else
-        (delete-and-update 
+        (delete-and-update
           input current-pos (util/safe-inc-current-pos-from-start (.-value input) current-pos))))))
 
 (defn keydown-backspace-handler