react-dropdown
react-dropdown copied to clipboard
Warning when selecting item
Steps to reproduce:
- Have the following JSX:
<DropdownButton btnSize="medium" title="More" onSelect={(eventKey) => { }}>
<MenuItem eventKey={1}>link</MenuItem>
<MenuItem eventKey={2}>link</MenuItem>
</DropdownButton>
- Interact with the dropdown in the UI
- 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
same