Esri / Esri/calcite-react

ArcGISAccount component doesn't show menu on click in React 17 due to StrictMode warning.

Open
#436 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
51
Forks
13
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior
ArcGIS Account menu shows up on click.

## Current Behavior
It doesn't due to console error saying:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

Turning off React.StrictMode tag (App component wrapper) doesn't help at all.

## Possible Solution

## Steps to Reproduce (for bugs)
1. npx create-react-app
2. yarn add calcite-react
3. create Account component as in https://calcite-react.netlify.app/arcgis-account example.
4. check console.

## Your Environment
CRA with React 17.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.