fix: property value not reactive

This commit is contained in:
Tienson Qin
2023-07-03 15:13:16 +08:00
parent d62d89d427
commit 2ea5adf1ad
2 changed files with 2 additions and 8 deletions

View File

@@ -243,14 +243,7 @@
edit-fn (fn [editor-id id v]
(let [v (str v)
cursor-range (util/caret-range (gdom/getElement (or id dom-id)))]
(state/set-editing! editor-id v property cursor-range)
(js/setTimeout
(fn []
(state/set-editor-action-data! {:block property
:pos 0})
(state/set-editor-action! :property-value-search))
50)))
(state/set-editing! editor-id v property cursor-range)))
multiple-values? (= :many (:cardinality schema))
type (:type schema)
editor-args {:block property

View File

@@ -425,6 +425,7 @@ independent of format as format specific heading characters are stripped"
:marker (:block/marker e)
:priority (:block/priority e)
:properties (:block/properties e)
:properties-values (:block/properties-text-values e)
:children children
:collapsed? (:block/collapsed? e)}]))}
nil)