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:
parent
803caf6531
commit
471cad3ae9
1 changed files with 3 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue