From 8da596ac4e6d8d0775295ca89d3d90f691fb2e22 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 21 Sep 2023 13:54:06 +1000 Subject: [PATCH] Allow date to be blanked out by model change #207 --- grails-app/assets/javascripts/knockout-dates.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grails-app/assets/javascripts/knockout-dates.js b/grails-app/assets/javascripts/knockout-dates.js index 1a6cae9..e990240 100644 --- a/grails-app/assets/javascripts/knockout-dates.js +++ b/grails-app/assets/javascripts/knockout-dates.js @@ -61,6 +61,9 @@ if (!isNaN(widget.date)) { widget.setDate(widget.date); } + else { + widget.setDate(null); + } } } };