From d8d71bf614f9fefe2d17ea3a9775d3130b06bd04 Mon Sep 17 00:00:00 2001 From: dwfliplet <144125903+dwfliplet@users.noreply.github.com> Date: Wed, 10 Apr 2024 07:32:27 +0200 Subject: [PATCH] fix(ID-4239): fixed emptying date and time inputs meant to load data from ds (#643) --- js/components/date.js | 2 +- js/components/time.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/components/date.js b/js/components/date.js index 7d0bee51..8f626b4c 100644 --- a/js/components/date.js +++ b/js/components/date.js @@ -63,7 +63,7 @@ Fliplet.FormBuilder.field('date', { this.empty = false; } - if (this.autofill === 'empty') { + if (this.autofill === 'empty' && this.defaultSource !== 'load') { this.value = ''; return; diff --git a/js/components/time.js b/js/components/time.js index 1fe25eb3..d47d1ac5 100644 --- a/js/components/time.js +++ b/js/components/time.js @@ -103,7 +103,7 @@ Fliplet.FormBuilder.field('time', { this.empty = false; } - if (this.autofill === 'empty') { + if (this.autofill === 'empty' && this.defaultSource !== 'load') { this.value = ''; return;