seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
3k stars 1.14k forks source link

Fix Issue #854 - Range slider, min value over max value. #864

Closed jespirit closed 5 years ago

jespirit commented 5 years ago

Pull Requests

Please accompany all pull requests with the following (where appropriate):

This pull request fixes https://github.com/seiyria/bootstrap-slider/issues/854. You can check the issue for my JSFiddle that is used to reproduce the bug.

I added 2 unit tests as well as making a minor edit with a unit test in the same file: test/specs/DraggingHandlesSpec.js.

I will say that I was getting this error Fatal error: Callback must be a function displayed at the very end in red text, after running the unit tests using grunt test command. I don't know why, thoughts?

seiyria commented 5 years ago

The code here looks good. You'll have to figure out how to make codeclimate happy with your tests.

@rovolution do you know what's up with the grunt error?

rovolution commented 5 years ago

@seiyria personally, im not too picky about fixing the code climate issue, and have debated just removing it altogether since i feel it doesnt deliver any real value TBH.

seiyria commented 5 years ago

@rovolution That's fine with me. I'd rather replace it with a linter if we had that set up or some-such. Or just not have it altogether.

rovolution commented 5 years ago

we already have a linter setup in our CI check - https://github.com/seiyria/bootstrap-slider/blob/master/Gruntfile.js#L274-L278

rovolution commented 5 years ago

@jespirit LGTM 👍 ill merge, publish, and update changelog.

rovolution commented 5 years ago

@jespirit merged and published to v10.2.3.

Thanks again for your contribution!