-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu component causes warning: "Popper: CSS "margin" styles cannot be used to apply padding..." #3440
Comments
Also facing the same issue would love some help with this :) |
This is a common issue when the menu is wrapped within a |
Can you please re-open - the warning still exists (I'm on version 1.4.1) |
still having this issue with 1.5.1 |
Still the same on 1.6.2 |
Also happening with 1.6.3 |
A temporary workaround: wrap your <Box>
<Menu>
<MenuButton as={Button} colorScheme="blue" variant="ghost" leftIcon={<AiOutlineInbox />} size="sm">
User
</MenuButton>
<MenuList minWidth="240px">
<MenuItem>Profile</MenuItem>
<MenuItem>Logout</MenuItem>
</MenuList>
</Menu>
</Box> |
The issue still occurs in 1.6.5. But the temporary workaround of @mindreframer works fine. |
I see this issue with v1.6.5 too |
Using Wrapping in a |
This remains an issue with 1.8.8. Wrapping in a |
@segunadebayo i feel this issue should be re-opened for the time being as there are multiple confirmations it still exists. |
I completely agree with that. Unfortunately, this is still an issue. |
Still exists in v2 :/ |
In my experience, wrapping in |
I'm still experiencing this warning using the Popover component within a Stack component. However, wrapping the parent Stack component with a Box component does not suppress this warning for me. |
Same here with @chakra-ui/react 2.5.5, wrapping Menu in Box doesn't silence the warning |
Same issue with @chakra-ui/react": "^2.6.1" when try to use Menu component inside a HStack. Wrapping Menu in Box works well. |
I managed to manipulate (reduce in my case) this gap with |
Im using @chakra-ui/react": "^2.6.1" as well and confirming the Box wrap removes the errors |
I also confirm the same! I just wrapped the menu using Box and the warning has disappeared and the appearance is still the same. |
馃悰 Bug report
馃挜 Steps to reproduce
The warning appears when the button (
MenuButton
) is clicked.Reproduction
馃 Expected behavior
Not having a warning.
馃實 System information
The text was updated successfully, but these errors were encountered: