Description
When the browser’s built-in translation feature is enabled, it mutates the DOM after the initial render. This can cause React to lose track of its internal node references and trigger a NotFoundError: Failed to execute 'removeChild' in Edge, leaving the app in a broken state.
This PR introduces a defensive patch that guards against invalid removeChild calls by ensuring the node is still a child of its parent before attempting removal. This prevents crashes caused by browser translation tools while preserving the expected application behavior.
Related Issues
Related Pull Requests
Checklist
- Changes have been tested locally.
- Unit tests have been written or updated as necessary.
- The code adheres to the repository's coding standards.
- Relevant documentation has been added or updated.
- No new warnings or errors have been introduced.
- SonarCloud issues have been reviewed and addressed.
- QA Passed