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

31 day in November #82

Open
Igor-Art opened this issue Mar 29, 2018 · 0 comments
Open

31 day in November #82

Igor-Art opened this issue Mar 29, 2018 · 0 comments

Comments

@Igor-Art
Copy link

Igor-Art commented Mar 29, 2018

jQuery: v3.2
Combodate v1.0.7
Chrome: 65.0.3325.181

smartDays: true
after ready: select any month -> select November -> display 31 day, need 30

in fillDay():

 var month = parseInt(this.$month.val(), 10); // is NaN
....
 if (!isNaN(month) && !isNaN(year)) {

if November is default then good (30 days). If reselect -> month is NaN
in this.$month option[value="10"] not selected
this.$month.val() //empty
or
this.$month.find('option:selected').val() // empty

Temp solution:
var month = parseInt(this.$month.val(), 10);
replace to
var month = parseInt(this.$month.find('option[selected="selected"]').val(), 10);

may be $(select).val() is not correct workly in jQuery

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

No branches or pull requests

1 participant