Skip to content

findDOMNode is deprecated in StrictMode - GlobalNavigationBarDropdown not functional #3166

@davidtomcik

Description

@davidtomcik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions