fix: auto resize for single block

This commit is contained in:
Peng Xiao
2022-08-02 21:02:08 +08:00
parent aa22ab0e39
commit bb84e99a82
8 changed files with 169 additions and 81 deletions

View File

@@ -2417,7 +2417,7 @@
(let [el (rum/dom-node state)]
(loop [el el]
(cond (nil? el) false
(and (.-classList el) (.. el -classList (contains "single-block-wrapper"))) true
(and (.-classList el) (.. el -classList (contains "single-block"))) true
:else (recur (.-parentElement el))))))
(defn keydown-new-block-handler [state e]