File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/components/scripts/post-build
showcases/angular-showcase/src/app/components/form Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @db-ux/ngx-core-components " : patch
3+ ---
4+
5+ DBInput: inserting an empty string doesn't reset/empty date or time related form fields
Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ export const getComponents = (): Component[] => [
368368 from : 'writeValue(value: any) {' ,
369369 to :
370370 'writeValue(value: any) {\n' +
371- 'if (!value && (this.type() === "date" ||\n' +
371+ 'if (!value && value !== "" && (this.type() === "date" ||\n' +
372372 ' this.type() === "time" ||\n' +
373373 ' this.type() === "week" ||\n' +
374374 ' this.type() === "month" ||\n' +
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export class FormComponent {
111111 this . model . checkbox2 = false ;
112112 this . form . get ( 'input' ) ?. setValue ( 'reset' ) ;
113113 this . form . get ( 'textarea' ) ?. setValue ( 'reset' ) ;
114- this . form . get ( 'dateinput' ) ?. setValue ( 'reset ' ) ;
114+ this . form . get ( 'dateinput' ) ?. setValue ( '' ) ;
115115 this . form . get ( 'checkbox' ) ?. setValue ( false ) ;
116116 }
117117
You can’t perform that action at this time.
0 commit comments