Skip to content

Default reset value to [] when multi=true#1177

Merged
JedWatson merged 2 commits intoJedWatson:masterfrom
mwilliamson:multi-default-reset-value
Aug 28, 2016
Merged

Default reset value to [] when multi=true#1177
JedWatson merged 2 commits intoJedWatson:masterfrom
mwilliamson:multi-default-reset-value

Conversation

@mwilliamson
Copy link
Contributor

If resetValue is not set, then onChange is called with [] instead of null when multi=true, which should help with #1170.

This also fixes the other tests that clear by clicking .Select-clear.

@JedWatson
Copy link
Owner

Nice fix, thanks @mwilliamson!

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.

2 participants