Tienson Qin před 3 roky
rodič
revize
1d88e285b0
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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]