fix: text blinks when pressing ESC

pull/10981/head
Tienson Qin 2024-01-24 02:14:51 +08:00
parent b21322cdb2
commit 054185ab39
1 changed files with 2 additions and 2 deletions

View File

@ -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?)