0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Disable placeholders on text editor.

Causes crash on use IME.
This commit is contained in:
Andrey Antukh 2021-02-19 10:53:41 +01:00
parent 803caf6531
commit 471cad3ae9

View file

@ -224,7 +224,7 @@
on-composition-start
(mf/use-callback
(fn []
(fn [event]
(.insertText slate/Editor editor "")))
on-change
@ -269,7 +269,8 @@
;; WARN: monky patch
(obj/set! slate/Transforms "deselect" (constantly nil)))
:on-composition-start on-composition-start
:placeholder (when (= :fixed grow-type) "Type some text here...")}]]]))
;; :placeholder (when (= :fixed grow-type) "Type some text here...")
}]]]))
(mf/defc text-shape-edit
{::mf/wrap [mf/memo]