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

Chip component not working with Google translate #5586

Closed
1 of 2 tasks
frec-hansen opened this issue Jan 17, 2024 · 1 comment
Closed
1 of 2 tasks

Chip component not working with Google translate #5586

frec-hansen opened this issue Jan 17, 2024 · 1 comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)

Comments

@frec-hansen
Copy link

Dependencies check up

  • I have verified that I use latest version of all @mantine/* packages

What version of @mantine/* packages do you have in package.json?

7.4.0

What package has an issue?

@mantine/core

What framework do you use?

Vite

In which browsers you can reproduce the issue?

Chrome

Describe the bug

DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

Can easily reproduce this bug by going to: https://mantine.dev/core/chip/, turn on google translate and translate the entire page to another language. Then click on the awesome chip to toggle the select off and on. Then you will be able to see the client side error.

If possible, include a link to a codesandbox with a minimal reproduction

No response

Possible fix

The issue is probably related to: facebook/react#11538 (comment)

TLDR for the fix is to wrap content in a span or div

Self-service

  • I would be willing to implement a fix for this issue
@rtivital rtivital added the Fixed patch Completed issues that will be published with next patch (1.0.X) label Jan 27, 2024
@rtivital
Copy link
Member

rtivital commented Feb 1, 2024

Fixed in 7.5.1

@rtivital rtivital closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed patch Completed issues that will be published with next patch (1.0.X)
Projects
None yet
Development

No branches or pull requests

2 participants