reactable.extras icon indicating copy to clipboard operation
reactable.extras copied to clipboard

[Bug]: dropdown_extra doesn't work if it has a single choice

Open TymekDev opened this issue 1 year ago • 0 comments

Guidelines

  • [X] I agree to follow this project's Contributing Guidelines.

Project Version

No response

Platform and OS Version

No response

Existing Issues

No response

What happened?

dropdown_extra fails if there is only a single choice.

Steps to reproduce

  1. Create dropdown_extra("id", "a")
  2. Observe TypeError: choices.map is not a function in the browser console

Expected behavior

Dropdown has a single option and works properly.

Attachments

No response

Screenshots or Videos

No response

Additional Information

No response

TymekDev avatar Aug 05 '24 13:08 TymekDev