You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using preact/compat (i.e. when any dependency uses React directly), onFocus event will bubble (to match React behavior): preactjs/preact#3355
For dropdown this will cause a selection bug (mousedown on an item will trigger onFocus on the menu item, which will bubble up to the dropdown, which will call setSelected with the previous selected item, which will be highlighted instead until mouseup).
When using
preact/compat
(i.e. when any dependency uses React directly),onFocus
event will bubble (to match React behavior):preactjs/preact#3355
For dropdown this will cause a selection bug (mousedown on an item will trigger onFocus on the menu item, which will bubble up to the dropdown, which will call
setSelected
with the previous selected item, which will be highlighted instead until mouseup).https://github.com/yuanqing/create-figma-plugin/blob/main/packages/ui/src/components/dropdown/dropdown.tsx#L111-L128
Probably many ways to fix that, here's the one I went with: divriots/create-figma-plugin-ui@b7ffa17
The text was updated successfully, but these errors were encountered: