mirror of https://github.com/penpot/penpot.git
🐛 Fix text editor not getting focus back after font variant change
This commit is contained in:
parent
08267de242
commit
20061067ad
|
|
@ -270,8 +270,10 @@
|
||||||
:font-variant-id new-variant-id
|
:font-variant-id new-variant-id
|
||||||
:font-weight (:weight variant)
|
:font-weight (:weight variant)
|
||||||
:font-style (:style variant)}))
|
:font-style (:style variant)}))
|
||||||
|
;; NOTE: the select component we are using does not fire on-blur event
|
||||||
(dom/blur! (dom/get-target new-variant-id)))))
|
;; so we need to call on-blur manually
|
||||||
|
(when (some? on-blur)
|
||||||
|
(on-blur)))))
|
||||||
|
|
||||||
on-font-select
|
on-font-select
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue