[player] Fix ExpressionChangedAfterItHasBeenCheckedError in TextArea
- Replace UpdateTextareaPipe with DynamicRowsDirective The dynamic height of the textarea is calculated based on the available width. However, accessing the width of the textarea often results in an error. For this reason, the calculation is now done using resize and change events in conjunction with a timeout to wait for the textarea to render.
Showing
- projects/common/components/input-elements/text-area.component.ts 8 additions, 16 deletions...s/common/components/input-elements/text-area.component.ts
- projects/common/directives/dynamic-rows.directive.ts 44 additions, 0 deletionsprojects/common/directives/dynamic-rows.directive.ts
- projects/common/pipes/update-textarea-rows.pipe.spec.ts 0 additions, 8 deletionsprojects/common/pipes/update-textarea-rows.pipe.spec.ts
- projects/common/pipes/update-textarea-rows.pipe.ts 0 additions, 11 deletionsprojects/common/pipes/update-textarea-rows.pipe.ts
- projects/common/shared.module.ts 4 additions, 3 deletionsprojects/common/shared.module.ts
Loading
Please register or sign in to comment