🐛 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 Alonso Torres
parent 08267de242
commit 20061067ad

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