Skip to content

fix not clearing when given invalid values#1756

Closed
ticklemynausea wants to merge 1 commit intoJedWatson:masterfrom
lifeonmarspt:fix-not-clearing-invalid-values
Closed

fix not clearing when given invalid values#1756
ticklemynausea wants to merge 1 commit intoJedWatson:masterfrom
lifeonmarspt:fix-not-clearing-invalid-values

Conversation

@ticklemynausea
Copy link

when given an invalid value (not in the range of specified possible values), the select component shows the clear select icon despite being empty. this was determined to be caused by renderClear() being incorrectly called.

this PR simplifies the logic that determines when the clear icon is to be rendered.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 92.892% when pulling 521028a on lifeonmarspt:fix-not-clearing-invalid-values into 1d15068 on JedWatson:master.

@agirton
Copy link
Collaborator

agirton commented May 25, 2017

Hi @ticklemynausea thank you for your contribution. It seems there is a lot of churn in this area lately. Do you mind adding a test to show that the x should not show with an invalid value?

Also per guidelines do not include the build files in your PR. We generate these during deployment.

@gwyneplaine
Copy link
Collaborator

thanks for this @ticklemynausea, I've pulled out the crux of your PR into #2100 to be merged into master

JedWatson added a commit that referenced this pull request Oct 26, 2017
fix not clearing when given invalid values, from #1756
@hugopeixoto hugopeixoto deleted the fix-not-clearing-invalid-values branch November 16, 2017 13:46
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