🐛 Fix focus handling on comment edition

This commit is contained in:
Andrey Antukh 2023-07-07 11:12:49 +02:00 committed by Alejandro Alonso
parent 992dd04b47
commit 9dbf6ffd14
4 changed files with 41 additions and 22 deletions

View file

@ -234,7 +234,7 @@
(defn select-text!
[^js node]
(when (and (some? node) (or (= "INPUT" (.-tagName node)) (= "TEXTAREA" (.-tagName node))))
(when (some? node)
(.select ^js node)))
(defn ^boolean equals?