-
Notifications
You must be signed in to change notification settings - Fork 18
Feature/ReadonlyFormField and ReadonlyFormFieldWrapper refactoring #222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feature/ReadonlyFormField and ReadonlyFormFieldWrapper refactoring #222
Conversation
…rapper, remove content observer which cause performance issues
| @Input('unitPosition') unitPosition: 'right' | 'left' = 'left'; | ||
| @Input('errorMessage') errorMessage: string | null = null; | ||
| @Input() id: string; | ||
| @Input() id!: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and everywhere else: I think we should use
| @Input() id!: string; | |
| @Input({ required: true }) id: string; |
instead :)
| this.doRendering(); | ||
| ngOnChanges(_: SimpleChanges): void { | ||
| if (this.initialized) { | ||
| this.syncView(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this?
| export class ReadOnlyFormFieldComponent implements OnChanges, AfterViewInit { | ||
| @Input() useProjectedContent: boolean = false; | ||
| @Input() value?: any; | ||
| @Input() label!: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This & other files, same as above:
| @Input() label!: string; | |
| @Input({ required: true }) label: string; |
Description
Refactored ReadonlyFormField and ReadonlyFormFieldWrapper, because of performance issues.
There was several performance issues with both of the components.
Alert icons styles allignment
Which Component is affected or generated?