Closed dtweedle closed 6 years ago
Any chance you’re using v6.2.0
? This bug was fixed in v2.6.1
: https://github.com/missive/emoji-mart/releases/tag/v2.6.1
After having a look it seems like the package version installed is version 2.6.0 but the lock file and package was both looking for version 2.6.1, not sure how I landed up in that state. But yes. Looks to be fixed.
Sorry about the erroneous report.
No worries, thanks for the report 👍
Description
When using the picker component, if the onSelect prop is not provided the picker will error out when the user makes a selection.
Partial Stack Trace Log
Suggested fix
The docs very clearly show that onSelect is not a required prop, either make it required or add in a conditional gate to prevent the call from being made unless the prop is provided.