mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 21:28:20 +00:00
🐛 Fixes problem with chinese inputs
This commit is contained in:
parent
043c038dae
commit
803caf6531
@ -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…
x
Reference in New Issue
Block a user