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))
         (commands/insert! element-id (str (or property q) "::")
                           {:last-pattern (str searching-property "::")})
-        (state/set-editor-action! :property-value-search)
         (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
   [element-id q]