mirror of
https://github.com/logseq/logseq.git
synced 2026-05-27 22:24:09 +00:00
fix: property value not reactive
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user