diprokon / ng-table-virtual-scroll

Virtual Scroll for Angular Material Table
https://diprokon.github.io/ng-table-virtual-scroll
MIT License
134 stars 42 forks source link

When used with inline table form elements error is reset after removed from view #52

Closed galwa closed 3 years ago

galwa commented 3 years ago

I am using virtual scroll in combine with multiple mat-form-field elements inline the cells

When a formControl have an error it is displayed but when scrolling it out of view and coming back the error is reset to null in the control - could it be related to default caching strategy ?

diprokon commented 3 years ago

When you scrolling, all elements, which are not in view, are destroyed. It is the feature of virtual scroll. Maybe, when your formControl is destroyed and recreated, it forgets about the error?