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

Warning when selecting item #38

Open
timendez opened this issue Sep 14, 2020 · 1 comment
Open

Warning when selecting item #38

timendez opened this issue Sep 14, 2020 · 1 comment

Comments

@timendez
Copy link

Steps to reproduce:

  1. Have the following JSX:
<DropdownButton btnSize="medium" title="More" onSelect={(eventKey) => { }}>
  <MenuItem eventKey={1}>link</MenuItem>
  <MenuItem eventKey={2}>link</MenuItem>
</DropdownButton>
  1. Interact with the dropdown in the UI
  2. See the following warning:
Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of RootCloseWrapper which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node
    in div (created by DropdownMenu)
    in RootCloseWrapper (created by DropdownMenu)
    in DropdownMenu (created by Dropdown)
    in div (created by ButtonGroup)
    in ButtonGroup (created by Dropdown)
    in Dropdown (created by Uncontrolled(Dropdown))
    in Uncontrolled(Dropdown) (created by ForwardRef)
    in ForwardRef (created by DropdownButton)
    in DropdownButton (at SubPage/index.js:74)
    in SubPage (created by Context.Consumer)
    in withRouter(SubPage) (at App.js:24)
    in Route (at App.js:23)
    in Switch (at App.js:16)
    in Router (created by BrowserRouter)
    in BrowserRouter (at App.js:15)
    in App (at src/index.js:9)
    in StrictMode (at src/index.js:8) index.js:1
@pedrotrogo-fump
Copy link

same

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