element-react icon indicating copy to clipboard operation
element-react copied to clipboard

String ref in Dropdown component

Open eakarpov opened this issue 5 years ago • 2 comments

Description

Using Dropdown component leads to error

Error Trace (if possible)

Uncaught Error: Element ref was specified as a string (default) but no owner was set. This could happen for one of the following reasons:

  1. You may be adding a ref to a function component
  2. You may be adding a ref to a component that was not created inside a component's render method
  3. You have multiple copies of React loaded

Solution

Upgrade component to new React guide rules

eakarpov avatar Dec 05 '19 10:12 eakarpov

https://reactjs.org/warnings/refs-must-have-owner.html

eakarpov avatar Dec 05 '19 10:12 eakarpov

[email protected] - this version of react is used in the project

eakarpov avatar Dec 05 '19 10:12 eakarpov