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 edge case slider #2336

Merged
merged 1 commit into from
Sep 14, 2017
Merged

Fix edge case slider #2336

merged 1 commit into from
Sep 14, 2017

Conversation

iam4x
Copy link
Contributor

@iam4x iam4x commented Sep 14, 2017

Fixes #2331

@@ -28,7 +28,7 @@ class Slider extends Component {
};

get isDisabled() {
return this.props.min === this.props.max;
return this.props.min === this.props.max || this.props.min > this.props.max;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not >=?

@algobot
Copy link
Contributor

algobot commented Sep 14, 2017

Deploy preview ready!

Built with commit f878b92

https://deploy-preview-2336--algolia-instantsearch.netlify.com

@algobot
Copy link
Contributor

algobot commented Sep 14, 2017

Deploy preview ready!

Built with commit c328df5

https://deploy-preview-2336--algolia-instantsearch.netlify.com

@bobylito bobylito merged commit 8830ab0 into develop Sep 14, 2017
@bobylito
Copy link
Contributor

I went ahead of myself and this is of course approved change :)

bobylito pushed a commit that referenced this pull request Sep 14, 2017
<a name=2.1.4></a>
## [2.1.4](v2.1.3...v2.1.4) (2017-09-14)

### Bug Fixes

* **release-script:** Add the generation of changelog for the release ([#2333](#2333)) ([9a2f70b](9a2f70b))
* **slider:** edge case when min > max ([#2336](#2336)) ([8830ab0](8830ab0))
* **slider:** Fix range slider dev env ([#2320](#2320)) ([e78de70](e78de70))
* **slider:** use algolia fork of rheostat ([#2335](#2335)) ([9eae009](9eae009))
@Haroenv Haroenv deleted the fix-edge-case-slider branch September 15, 2017 08:12
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.

3 participants