Appsilon / reactable.extras

Extra features for reactable package
https://appsilon.github.io/reactable.extras/
41 stars 4 forks source link

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

Closed TymekDev closed 1 week ago

TymekDev commented 3 months ago

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