fix(draw): invalid dom element

pull/5237/head
Andelf 2022-04-29 11:41:26 +08:00 committed by Tienson Qin
parent 161e0ee56a
commit a6a0596a7d
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
(defn- update-draw-content-width
[state]
(let [el ^js (rum/dom-node state)]
(when-let [el ^js (rum/dom-node state)]
(loop [el (.querySelector el ".draw-wrap")]
(cond
(or (nil? el) (undefined? el) (undefined? (.-classList el)))