mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 15:56:37 +02:00
🐛 Disable placeholders on text editor.
Causes crash on use IME.
This commit is contained in:
parent
803caf6531
commit
471cad3ae9
1 changed files with 3 additions and 2 deletions
|
@ -224,7 +224,7 @@
|
||||||
|
|
||||||
on-composition-start
|
on-composition-start
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(fn []
|
(fn [event]
|
||||||
(.insertText slate/Editor editor "")))
|
(.insertText slate/Editor editor "")))
|
||||||
|
|
||||||
on-change
|
on-change
|
||||||
|
@ -269,7 +269,8 @@
|
||||||
;; WARN: monky patch
|
;; WARN: monky patch
|
||||||
(obj/set! slate/Transforms "deselect" (constantly nil)))
|
(obj/set! slate/Transforms "deselect" (constantly nil)))
|
||||||
:on-composition-start on-composition-start
|
: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/defc text-shape-edit
|
||||||
{::mf/wrap [mf/memo]
|
{::mf/wrap [mf/memo]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue