Skip to content

Fixed invalid negative input#14

Closed
Benzolitz wants to merge 3 commits intoEmKayDK:bug-fixesfrom
Benzolitz:Benzolitz-patch-1
Closed

Fixed invalid negative input#14
Benzolitz wants to merge 3 commits intoEmKayDK:bug-fixesfrom
Benzolitz:Benzolitz-patch-1

Conversation

@Benzolitz
Copy link

Currently the script only checkes if the input has a bigger length then maxValue. If you want to enter a negative Value which is longer than the maxValue, the script stops you from doing so. Only possibility was to use the mousewheel.

EmKayDK and others added 3 commits May 4, 2015 11:22
Updated tests to include this.
Added Syn to the project instead of including it directly from Github.
Script only checked if input has a bigger length then maxValue. If you wanted to enter a negative Value which is longer than the maxValue, the script stoped you from doing so. Only possibility was to use the mousewheel.
@Benzolitz
Copy link
Author

$('#txtTesting').jStepper({minValue: -9999, maxValue: 20, overflowMode: 'ignore'});

I can write -9, but I can't add another 9. The script will stop me because the only check is if the Value.length is bigger than maxValue.length.

@Benzolitz Benzolitz closed this Sep 19, 2015
@Benzolitz
Copy link
Author

Didn't want to close :D

@Benzolitz Benzolitz reopened this Sep 19, 2015
EmKayDK added a commit that referenced this pull request Sep 19, 2015
@EmKayDK
Copy link
Owner

EmKayDK commented Sep 19, 2015

Fixed!
Thanks for the contribution :)

@EmKayDK EmKayDK closed this Sep 19, 2015
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