0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-12 23:11:23 -05:00

🐛 Fix tooltip update when set changes (#6058)

This commit is contained in:
Eva Marco 2025-03-12 15:49:07 +01:00 committed by GitHub
parent 86022a967c
commit 2fe6fb28e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,10 +240,11 @@
;; FIXME: missing deps
on-hover
(mf/use-fn
(mf/deps selected-shapes is-viewer?)
(mf/deps selected-shapes is-viewer? active-theme-tokens token half-applied? no-valid-value ref-not-in-active-set)
(fn [event]
(let [node (dom/get-current-target event)
title (generate-tooltip is-viewer? (first selected-shapes) token
theme-token (get active-theme-tokens (:name token))
title (generate-tooltip is-viewer? (first selected-shapes) theme-token
half-applied? no-valid-value ref-not-in-active-set)]
(dom/set-attribute! node "title" title))))]