0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Fix problem with typography sample

This commit is contained in:
alonso.torres 2024-03-13 13:34:01 +01:00
parent 2a998a2dcc
commit c47fe2954a

View file

@ -441,6 +441,7 @@
[{:keys [visible? typography editable? name-input-ref on-close on-change on-name-blur local? navigate-to-library on-key-down]}]
(let [ref (mf/use-ref nil)
font-data (fonts/get-font-data (:font-id typography))]
(fonts/ensure-loaded! (:font-id typography))
(mf/use-effect
(mf/deps visible?)