-
I'm adding a For some reason, when I click on the menu, there will be whitespace between the button and the dropdown menu. This only happens when I put the menu onto the chart. If I have the menu standalone in the browser, it'll work as expected. This is the menu code:
This is the full codesandbox: https://codesandbox.io/s/nervous-haze-3mz2c?file=/src/BasicLineSeries.tsx:511-1199 Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I can see the menu is adding a transform that's moving the menu. I'm not sure how it's calculating that though, bit difficult to say. |
Beta Was this translation helpful? Give feedback.
-
I had to wrap |
Beta Was this translation helpful? Give feedback.
I had to wrap
MenuList
inside aPortal
and setzIndex={10}
inside theMenuList
props.