Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/is option unique crash #2185

Merged
merged 3 commits into from
Dec 13, 2017
Merged

Fix/is option unique crash #2185

merged 3 commits into from
Dec 13, 2017

Conversation

Chopinsky
Copy link
Contributor

This PR is trying to fix issue #2184, where for some edge cases, if we try to create a new option while the options property is null or undefined, the control will crash because function isOptionUnique will call filter on options before checking if it's valid to be performed on.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.45% when pulling 5127be1 on Chopinsky:fix/isOptionUnique-crash into 75f3043 on JedWatson:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.45% when pulling ad0d97e on Chopinsky:fix/isOptionUnique-crash into 75f3043 on JedWatson:master.

@victorfern91
Copy link

@JedWatson Do you have any news about the integration of this Pull Request in the new version of react-select? Thanks for your time @Chopinsky!

@JedWatson
Copy link
Owner

Yep, looks great. Thanks @Chopinsky!

@JedWatson JedWatson merged commit 81f35da into JedWatson:master Dec 13, 2017
@Chopinsky Chopinsky deleted the fix/isOptionUnique-crash branch December 13, 2017 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants