From cf7462fd0e3720d3f2727ef7d744eaf2521b7deb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 11 Feb 2021 14:14:28 +0800 Subject: [PATCH] zindex on combos on popovers.. --- Roo/bootstrap/DateField.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Roo/bootstrap/DateField.js b/Roo/bootstrap/DateField.js index 2a695098f3..642f112725 100644 --- a/Roo/bootstrap/DateField.js +++ b/Roo/bootstrap/DateField.js @@ -751,8 +751,8 @@ Roo.extend(Roo.bootstrap.DateField, Roo.bootstrap.Input, { //Roo.log(className); if (className.indexOf('day') > -1 && className.indexOf('disabled') < 0 ){ var day = parseInt(html, 10) || 1; - var year = (new Date(this.viewDate)).getUTCFullYear(), - month = (new Date(this.viewDate)).getUTCMonth(); + var year = (this.viewDate || new Date()).getUTCFullYear(), + month = (this.viewDate || new Date()).getUTCMonth(); if (className.indexOf('old') > -1) { if(month === 0 ){ -- 2.39.2