mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 16:37:22 +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]
|
(fn [event]
|
||||||
(dwt/editor-select-all! editor))
|
(dwt/editor-select-all! editor))
|
||||||
|
|
||||||
|
on-composition-start
|
||||||
|
(mf/use-callback
|
||||||
|
(fn []
|
||||||
|
(.insertText slate/Editor editor "")))
|
||||||
|
|
||||||
on-change
|
on-change
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(fn [val]
|
(fn [val]
|
||||||
|
@ -263,6 +268,7 @@
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
;; 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
|
||||||
: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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue