Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Page scrolls to top on single action button click example #5248

Answered by hippee-lee
danail-vasilev asked this question in Q&A
Discussion options

You must be logged in to vote

The issue here is that the example stackblitz is not using the standard Clarity application layout.

I've updated the example to place application content in the .content-area container as described in the application layout docs.

https://stackblitz.com/edit/gh-5248-app-layout-v4?file=src/app/app.component.html

I know it's not explicitly called out but application components need to be in the correct DOM hierarchy for some parts to work properly.

One more thing, I'm moving this to a discussion since its not an issue, more of a how to that seems to fit better in a discussion for now.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@danail-vasilev
Comment options

@hippee-lee
Comment options

Answer selected by hippee-lee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5248 on November 17, 2020 19:58.