mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
Fix token position wrong, component gets rendered on user mount
This commit is contained in:
@@ -311,6 +311,7 @@
|
||||
token-id (:token-id mdata)
|
||||
token (get (mf/deref refs/workspace-tokens) token-id)]
|
||||
(mf/use-effect
|
||||
(mf/deps mdata)
|
||||
(fn []
|
||||
(when-let [node (mf/ref-val dropdown-ref)]
|
||||
(reset! width (.-offsetWidth node)))))
|
||||
|
||||
Reference in New Issue
Block a user