Skip to content

Commit

Permalink
fix(material): ensure textarea is working with Angular v17 hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad committed Jan 7, 2024
1 parent 0f67d89 commit 82dc543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ui/bootstrap/textarea/src/textarea.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaPro
[formlyAttributes]="field"
[attr.aria-describedby]="id + '-formly-validation-error'"
[attr.aria-invalid]="showError"
>
</textarea>
></textarea>
</ng-template>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
3 changes: 1 addition & 2 deletions src/ui/material/textarea/src/textarea.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaPro
[cdkAutosizeMinRows]="props.autosizeMinRows"
[cdkAutosizeMaxRows]="props.autosizeMaxRows"
[class.cdk-textarea-autosize]="props.autosize"
>
</textarea>
></textarea>
`,
providers: [
// fix for https://github.com/ngx-formly/ngx-formly/issues/1688
Expand Down

0 comments on commit 82dc543

Please sign in to comment.