You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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():
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
The text was updated successfully, but these errors were encountered: