1
0
Эх сурвалжийг харах

fix: block text blink when exits editor

Tienson Qin 1 жил өмнө
parent
commit
429617ba8b

+ 1 - 1
src/main/frontend/components/block.cljs

@@ -2538,7 +2538,7 @@
                                                    (p/do!
                                                     (state/set-editor-op! :escape)
                                                     (editor-handler/save-block! (editor-handler/get-state) value)
-                                                    (editor-handler/escape-editing select?))))}
+                                                    (js/setTimeout #(editor-handler/escape-editing select?) 10))))}
                                      edit-input-id
                                      config))]
           (if (and (seq (:block/tags block)) db-based?)