Skip to content

Fix/is option unique crash#2185

Merged
JedWatson merged 3 commits intoJedWatson:masterfrom
Chopinsky:fix/isOptionUnique-crash
Dec 13, 2017
Merged

Fix/is option unique crash#2185
JedWatson merged 3 commits intoJedWatson:masterfrom
Chopinsky:fix/isOptionUnique-crash

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.

4 participants