-
Notifications
You must be signed in to change notification settings - Fork 1
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
Public search scroll to result #1486
Conversation
portal-frontend/src/app/features/public/search/public-search.component.ts
Outdated
Show resolved
Hide resolved
@@ -193,6 +194,14 @@ export class PublicSearchComponent implements OnInit, OnDestroy { | |||
sessionStorage.setItem(SEARCH_SESSION_STORAGE_KEY, searchDto); | |||
|
|||
this.isLoading = true; | |||
const element = this.elementRef.nativeElement.querySelector(`#${CSS.escape('searchResults')}`); |
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.
Remove the element ref, and use the ID you gave it with scrollToElement util
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.
Yeah, this is probably better since it keeps behaviour consistent.
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.
made changes
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.
LGTM 🚀
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.
LGTM 👍
No description provided.