Skip to content

Commit

Permalink
fix(ID-4239): fixed emptying date and time inputs meant to load data …
Browse files Browse the repository at this point in the history
…from ds (#643)
  • Loading branch information
dwfliplet authored Apr 10, 2024
1 parent 77f6cf4 commit d8d71bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/components/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion js/components/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8d71bf

Please sign in to comment.