🐛 Fix text editor not getting focus back after font variant change

This commit is contained in:
Belén Albeza 2025-12-12 14:15:09 +01:00 committed by Alejandro Alonso
parent 5497fa2a66
commit 6586ab79e6

View File

@ -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