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

DropdownList should support react StrictMode #928

Closed
dimaqq opened this issue Apr 16, 2019 · 0 comments
Closed

DropdownList should support react StrictMode #928

dimaqq opened this issue Apr 16, 2019 · 0 comments

Comments

@dimaqq
Copy link

dimaqq commented Apr 16, 2019

I'm trying to use DropdownList in a new react project (newest react, hooks, etc.).

Code can be reduced to: <DropdownList data={["aa", "bb"]} defaultValue={null}/>

When I click the widget, react complains of:

index.js:1446 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.

    in div (created by Transition)
    in Transition (created by SlideDownTransition)
    in SlideDownTransition (created by Popup)
    in Popup (created by DropdownList)
    in div (created by Widget)
    in Widget (created by DropdownList)
    in DropdownList (created by Uncontrolled(DropdownList))
    in Uncontrolled(DropdownList) (at UserCard.js:33)
    in [my component] (created by Context.Consumer)
@dimaqq dimaqq changed the title Support StrictMode DropdownList should support react StrictMode Apr 16, 2019
@jquense jquense closed this as completed Mar 31, 2021
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

2 participants