fix: EOL undo issue

pull/1764/head
Weihua Lu 2021-05-09 00:25:52 +08:00
parent d25db88fc1
commit d1cafa3df1
1 changed files with 6 additions and 0 deletions

View File

@ -723,6 +723,12 @@
(when-let [input (gdom/getElement edit-input-id)]
(let [pos (count cursor-range)]
(when content
(util/set-change-value input content)
;; FIXME
;; use set-change-value for now
;; until somebody can figure out why set! value doesn't work here
;; it seems to me textarea autoresize is completely broken
#_
(set! (.-value input) (string/trim content)))
(when move-cursor?
(util/move-cursor-to input pos))))))))