Skip to content

Warning when selecting item #38

@timendez

Description

@timendez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions