Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Children in Chip component misplaced when selected #4298

Closed
mmaurello opened this issue May 24, 2023 · 0 comments · Fixed by #4328
Closed

Children in Chip component misplaced when selected #4298

mmaurello opened this issue May 24, 2023 · 0 comments · Fixed by #4328

Comments

@mmaurello
Copy link

What package has an issue

@mantine/core

Describe the bug

For the Chip component, if I pass a ReactNode as children to the Chip, instead of a plain string, when I select the chip, the children are shown below the Chip, not inside.

I include a Codesandbox example with a string as children (working) and with a ReactNode as children (not working)

Not that this only happen when the Chip is selected

What version of @mantine/hooks page do you have in package.json?

6.0.11

If possible, please include a link to a codesandbox with the reproduced problem

https://codesandbox.io/s/jolly-cdn-kmx1c8

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

Yes

Possible fix

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant