mirror of https://github.com/logseq/logseq
fix: text blinks when pressing ESC
parent
b21322cdb2
commit
054185ab39
|
@ -2510,8 +2510,8 @@
|
|||
:on-hide (fn [value event]
|
||||
(let [select? (and (= event :esc)
|
||||
(not (string/includes? value "```")))]
|
||||
(editor-handler/escape-editing select?)
|
||||
(editor-handler/save-block! (editor-handler/get-state) value)))}
|
||||
(p/let [_ (editor-handler/save-block! (editor-handler/get-state) value)]
|
||||
(editor-handler/escape-editing select?))))}
|
||||
edit-input-id
|
||||
config))]
|
||||
(if (and named? (seq (:block/tags block)) db-based?)
|
||||
|
|
Loading…
Reference in New Issue