mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: file content cleared when onblur
This commit is contained in:
@@ -260,13 +260,14 @@
|
||||
state)
|
||||
:did-update (fn [state]
|
||||
(reset! (:code-options state) (last (:rum/args state)))
|
||||
(->> state
|
||||
:rum/args
|
||||
last
|
||||
:lines
|
||||
butlast
|
||||
(string/join "")
|
||||
(.setValue @(:editor-atom state)))
|
||||
(when-not (:file? (first (:rum/args state)))
|
||||
(->> state
|
||||
:rum/args
|
||||
last
|
||||
:lines
|
||||
butlast
|
||||
(string/join "")
|
||||
(.setValue @(:editor-atom state))))
|
||||
state)}
|
||||
[state _config id attr code _theme _options]
|
||||
[:div.extensions__code
|
||||
|
||||
Reference in New Issue
Block a user