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

Angular 14 scroll not triggering #458

Open
benalex94 opened this issue Jan 4, 2023 · 1 comment
Open

Angular 14 scroll not triggering #458

benalex94 opened this issue Jan 4, 2023 · 1 comment

Comments

@benalex94
Copy link

benalex94 commented Jan 4, 2023

Hey,

I have a page of dynamic elements for accommodation locations and was looking to create a quick links list to scroll through them. I have tried everything but can't seem to get it to scroll at all.

The page is accommodation and the href is a unique string linked to an id #scroll-1 2 3 ... etc

I have been testing on chrome and saw the issue relating to smooth scroll that has no effect on my app

Currently clicking a link seems to do nothing

<h3>Quick Links</h3>
       <ol class="accommodation-links">
             <li *ngFor="let room of allAccommodation; let i = index">
                    <a pageScroll routerLink="/accommodation" [href]="'#scroll-'+i" [title]="'View '+room.name">{{room.name}</a>
            </li>
       </ol>

Working page
localhost_accommodation

@Nolanus
Copy link
Owner

Nolanus commented Jan 14, 2023

Hi @benalex94,
sorry to hear. Can you provide a Plunkr or similar example to see the problem in a running application? It's hard to debug based in a code snippet and screenshot.

Best
Sebastian

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

No branches or pull requests

2 participants