Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Invalid prop children supplied to ReactOverlaysDropdown, expected a ReactNode. #925

Open

Description

@soetji

Describe the bug

Got the above error when trying the example from https://react-bootstrap.github.io/react-overlays/api/Dropdown.

To Reproduce

See the console after loading the example below.

Reproducible Example

https://codesandbox.io/s/react-playground-forked-w5u3v?file=/DropDownBar.js:1696-1725

Expected behavior

No errors.

Screenshots

Environment (please complete the following information)

  • Operating System: macOS
  • Browser, Version Chrome 88
  • react-overlays Version 5.0.0

Additional context

Activity

  1. kyletsang commented on Mar 4, 2021

    @kyletsang
    Member

    Looks like docs need to be updated for v5. Dropdown just takes a regular node as children now, not a function. There are also some other API changes regarding what useDropdownMenu returns.

    Here's a working example for v5:
    https://codesandbox.io/s/react-playground-forked-y4ep0?file=/DropDownBar.js

  2. soetji commented on Sep 27, 2021

    @soetji
    Author

    Can someone update the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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