Tienson Qin 3 年之前
父节点
当前提交
1d88e285b0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/frontend/handler/editor.cljs

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

@@ -2082,9 +2082,9 @@
         (cursor/move-cursor-to input (+ end-index 2))
         (cursor/move-cursor-to input (+ end-index 2))
         (commands/insert! element-id (str (or property q) "::")
         (commands/insert! element-id (str (or property q) "::")
                           {:last-pattern (str searching-property "::")})
                           {:last-pattern (str searching-property "::")})
-        (state/set-editor-action! :property-value-search)
         (state/set-editor-action-data! {:property (or property q)
         (state/set-editor-action-data! {:property (or property q)
-                                        :pos (cursor/pos input)})))))
+                                        :pos (cursor/get-caret-pos input)})
+        (state/set-editor-action! :property-value-search)))))
 
 
 (defn property-value-on-chosen-handler
 (defn property-value-on-chosen-handler
   [element-id q]
   [element-id q]