From 9c85d0353de7f01a15e328aefa13d8f902ca403e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 22 Aug 2023 15:38:48 +0800 Subject: [PATCH] * Fix js error. --- module/todo/js/common.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/todo/js/common.ui.js b/module/todo/js/common.ui.js index 5327544055..27ef816114 100644 --- a/module/todo/js/common.ui.js +++ b/module/todo/js/common.ui.js @@ -246,7 +246,7 @@ function changeDate(event) */ function verifySpaceDay(event) { - if(!event.target.value) $(event.target).closest('.input-control').addClass('has-error'); + if(typeof event.target.value != 'undefined' && !event.target.value) $(event.target).closest('.input-control').addClass('has-error'); } /**