Using JS, Menu.Target works with UnstyledButton only if it is directly inside of the element. If I try a functional component instead (same code, just separated), it no longer works.
https://codesandbox.io/s/angry-scott-1zd38i?file=/src/App.js
2 messages · Page 1 of 1 (latest)
Using JS, Menu.Target works with UnstyledButton only if it is directly inside of the element. If I try a functional component instead (same code, just separated), it no longer works.
https://codesandbox.io/s/angry-scott-1zd38i?file=/src/App.js
The menu's position prop does nothing using the separated code version.