Explorar o código

fix: auto-focus property name when not add a new property

Tienson Qin hai 1 ano
pai
achega
07bf73f01e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/components/property.cljs

+ 1 - 1
src/main/frontend/components/property.cljs

@@ -171,7 +171,7 @@
           [:label.col-span-1 "Name:"]
           (shui/input
            {:class         "col-span-2 !px-2 !py-0 !h-8"
-            :auto-focus    true
+            :auto-focus    (not add-new-property?)
             :on-change     #(reset! *property-name (util/evalue %))
             :on-blur       save-property-fn
             :on-key-press  (fn [e]