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-weight (:weight variant)
|
||||
:font-style (:style variant)}))
|
||||
|
||||
(dom/blur! (dom/get-target new-variant-id)))))
|
||||
;; NOTE: the select component we are using does not fire on-blur event
|
||||
;; so we need to call on-blur manually
|
||||
(when (some? on-blur)
|
||||
(on-blur)))))
|
||||
|
||||
on-font-select
|
||||
(mf/use-fn
|
||||
|
|
|
|||
Loading…
Reference in New Issue