design-system-react
design-system-react copied to clipboard
findDOMNode is deprecated in StrictMode - GlobalNavigationBarDropdown not functional
The GlobalNavigationBarDropdown component in @salesforce/design-system-react triggers a React deprecation warning when used in strict mode due to its reliance on findDOMNode. Additionally, the dropdown menu does not display when clicking on the dropdown button, making the component non-functional in this context.
This issue affects applications using React 18+ with strict mode enabled, as findDOMNode is deprecated and will likely be removed in future versions of React.
Actual Behavior
1. Clicking on the GlobalNavigationBarDropdown button does not display the dropdown menu.
2. A warning is displayed in the console:
Environment • React Version: 18.2.0 • @salesforce/design-system-react Version: 0.10.61 • Browser: Chrome Version 131.0.6778.86 • Node Version: 22.8.0 • Operating System: MAC OS 15.1.1
Thanks for opening your first issue! :wave: If you have found this library helpful, please star it. A maintainer will try to respond within 7 days. If you haven’t heard anything by then, please bump this thread.