Skip to content

[material-ui][LoadingButton] Crashes React when Chrome has Translated the Page #27853

@scottfr

Description

@scottfr

Current Behavior 😯

React crashes when changing the loading state of a LoadingButton when Chrome has translated the page:

Uncaught 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.

Steps to Reproduce 🕹

  1. Set up Chrome languages to use a non english language and enable translation from english (https://support.google.com/chrome/answer/173424)
  2. Go to: https://next.material-ui.com/components/buttons/
  3. Scroll down to "Toggle the loading switch to see the transition between the different states" (it should be written in whatever language the page has been translated to)
  4. Toggle the loading toggle, the demo will crash

Metadata

Metadata

Assignees

Labels

external dependencyBlocked by external dependency, we can’t do anything about it.scope: buttonChanges related to the button.type: bugIt doesn't behave as expected.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions