ecommerce1986 / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
0 stars 0 forks source link

Date validation doesn't work #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. If selected default month has less than 31 days, 31st day can still be 
selected. This doesn't work if month value has been changed from the default. 
After that the validation works as expected.

What is the expected output? What do you see instead?
I expected that I couldn't select Sep 31st because there's only 30 days in 
September.

What version of the product are you using? On what operating system?
Version 1.5 in Chrome 13.

Please provide any additional information below.

This can apparently be fixed by changing

if (this.preset && s.preset.match(/date/i) && ((i == yOrd) || (i == mOrd))) {

to

if (this.preset && s.preset.match(/date/i)) {

Original issue reported on code.google.com by thar...@gmail.com on 2 Sep 2011 at 1:15

GoogleCodeExporter commented 8 years ago

Original comment by diosla...@gmail.com on 5 Sep 2011 at 5:45

GoogleCodeExporter commented 8 years ago
Issue 32 has been merged into this issue.

Original comment by diosla...@gmail.com on 19 Sep 2011 at 4:34

GoogleCodeExporter commented 8 years ago
Ah, I'm sorry for the duplicate error :(

Original comment by bender.ross on 19 Sep 2011 at 5:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Fixed in 1.5.1

Original comment by diosla...@gmail.com on 21 Sep 2011 at 9:48