mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 22:57:19 +02:00
🐛 Fixes problem with chinese inputs
This commit is contained in:
parent
043c038dae
commit
803caf6531
1 changed files with 6 additions and 0 deletions
|
@ -222,6 +222,11 @@
|
|||
(fn [event]
|
||||
(dwt/editor-select-all! editor))
|
||||
|
||||
on-composition-start
|
||||
(mf/use-callback
|
||||
(fn []
|
||||
(.insertText slate/Editor editor "")))
|
||||
|
||||
on-change
|
||||
(mf/use-callback
|
||||
(fn [val]
|
||||
|
@ -263,6 +268,7 @@
|
|||
(dom/stop-propagation event)
|
||||
;; 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...")}]]]))
|
||||
|
||||
(mf/defc text-shape-edit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue