Skip to content
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

Merged
merged 5 commits into from
Mar 11, 2024
Merged

Public search scroll to result #1486

merged 5 commits into from
Mar 11, 2024

Conversation

urmikgov
Copy link
Contributor

@urmikgov urmikgov commented Mar 6, 2024

No description provided.

@@ -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')}`);
Copy link
Collaborator

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

Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made changes

Copy link
Collaborator

@trslater trslater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Copy link
Collaborator

@dhaselhan dhaselhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@urmikgov urmikgov merged commit aab36e6 into develop Mar 11, 2024
3 checks passed
@urmikgov urmikgov deleted the task/alcs-1650 branch March 11, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants