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

findDOMNode is deprecated in StrictMode - GlobalNavigationBarDropdown not functional #3166

Open
davidtomcik opened this issue Dec 2, 2024 · 1 comment

Comments

@davidtomcik
Copy link

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:
image

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

Copy link

welcome bot commented Dec 2, 2024

Thanks for opening your first issue! 👋
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.

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

No branches or pull requests

1 participant