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

pn.Accordion: click on a Card #1884

Closed
thuydotm opened this issue Jan 4, 2021 · 1 comment · Fixed by #1912
Closed

pn.Accordion: click on a Card #1884

thuydotm opened this issue Jan 4, 2021 · 1 comment · Fixed by #1912
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@thuydotm
Copy link
Contributor

thuydotm commented Jan 4, 2021

ALL software version info

panel 0.10.0, Google Chrome browser

Description of expected behavior and the observed behavior

When click to open/close a Card, it jumps to the top of the page regardless of the position of the Card. In the example below, I add some mock cards, then scroll down and click on card Filter 25 and it jumps back to the top, the card opened/closed as expected though.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
pn.extension()

n = 30

filters = pn.Column(sizing_mode='stretch_width', margin=0)
filters[:] = [
    pn.Row(
        '#### Filters',
    ),
    pn.layout.Divider(),
    pn.Accordion(
        *[('Filter ' + str(i), 'Filter ' + str(i)) for i in range(1, n)]
    )
]

tmpl = pn.template.MaterialTemplate()
tmpl.main.append(filters)
tmpl.servable()

Screenshots or screencasts of the bug in action

image

@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label Jan 4, 2021
@ahuang11
Copy link
Contributor

ahuang11 commented Jan 4, 2021

Same with card #1833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants