-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix(esf): reset forOf startIndex on esf columnChange #14125
Conversation
@@ -229,6 +229,10 @@ export class IgxExcelStyleSearchComponent implements AfterViewInit, OnDestroy { | |||
}); | |||
esf.columnChange.pipe(takeUntil(this.destroy$)).subscribe(() => { | |||
this.virtDir?.resetScrollPosition(); | |||
|
|||
if (this.virtDir) { | |||
this.virtDir.state.startIndex = 0; |
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.
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.
You can reproduce the issue in the ESF templates sample below.
Since we're reusing the IgxGridExcelStyleFilteringComponent
and we do not reset the startIndex
anymore (from #13688), it doesnt reset when changing the column.
screen-capture.webm
Notice how the startIndex of the second column is 14.
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.
I think it would be best to add a test specifically for this scenario so it does not get regressed anymore.
Closes #14043
Additional information (check all that apply):
Checklist:
feature/README.MD
updates for the feature docsREADME.MD
CHANGELOG.MD
updates for newly added functionalityng update
migrations for the breaking changes (migrations guidelines)