Просмотр исходного кода

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

Tienson Qin 1 год назад
Родитель
Сommit
07bf73f01e
1 измененных файлов с 1 добавлено и 1 удалено
  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]