Browse Source

Merge branch 'master' into feat/capacitor-new

Tienson Qin 6 months ago
parent
commit
668d64ee24
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/frontend/components/property/value.cljs

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

@@ -1265,7 +1265,10 @@
                       (set-value! (util/evalue e))
                       (reset! *value (util/evalue e)))
          :on-blur (fn [_e]
-                    (set-property-value! value))
+                    (p/do!
+                     (set-property-value! value)
+                     (when (not= value (db-property/property-value-content (db/entity (:db/id value-block))))
+                       (set-value! (db-property/property-value-content value-block)))))
          :on-key-down (fn [e]
                         (let [input (rum/deref *input-ref)
                               pos (cursor/pos input)