z-index should have the value of the zIndexOffset options property.
Actual behaviour
z-index gets value -Infinity
Datepicker version used
ex. 1.6.1.
Using Math.max on an empy array causes the issue, check for empty array and skip the manipulation of zIndexOffset when empty, to avoid resetting to -Infinity.
Expected behaviour
z-index should have the value of the zIndexOffset options property.
Actual behaviour
z-index gets value -Infinity
Datepicker version used
ex. 1.6.1.
Using Math.max on an empy array causes the issue, check for empty array and skip the manipulation of zIndexOffset when empty, to avoid resetting to -Infinity.