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:
parent
86022a967c
commit
2fe6fb28e4
1 changed files with 3 additions and 2 deletions
|
@ -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))))]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue