We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bea2f94 commit 0465e8dCopy full SHA for 0465e8d
1 file changed
projects/social_platform/src/app/ui/components/input/input.component.ts
@@ -35,8 +35,6 @@ import { MatFormFieldModule } from "@angular/material/form-field";
35
],
36
})
37
export class InputComponent implements ControlValueAccessor {
38
- constructor() {}
39
-
40
@Input() placeholder = "";
41
@Input() type: "text" | "password" | "email" | "tel" | "date" | "radio" = "text";
42
@Input() size: "small" | "big" = "small";
@@ -144,7 +142,9 @@ export class InputComponent implements ControlValueAccessor {
144
142
}
145
143
146
writeValue(value: string | null): void {
147
- this.value = value ?? "";
+ setTimeout(() => {
+ this.value = value ?? "";
+ });
148
149
150
onChange: (value: string) => void = () => {};
0 commit comments