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

Document scroll positions get reset when rendering charts inside tabs #740

Open
2 tasks
lubaskinc0de opened this issue Aug 30, 2024 · 1 comment
Open
2 tasks
Labels
bug Something isn't working

Comments

@lubaskinc0de
Copy link

Reproduction

https://codesandbox.io/p/live/53b8b407-a526-4963-9152-a2ad9bb97c52

Describe the bug

When I change tabs (between different charts), document scroll got reset to top, it's very terrible

System Info

System:
    OS: Linux 6.10 Arch Linux
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 2.38 GB / 11.33 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 22.7.0 - /usr/bin/node
    npm: 10.8.3 - /usr/bin/npm
  Browsers:
    Brave Browser: 127.1.68.141
  npmPackages:
    @vueuse/core: ^11.0.3 => 11.0.3 
    radix-vue: ^1.9.5 => 1.9.5 
    vue: ^3.4.37 => 3.4.38

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@lubaskinc0de lubaskinc0de added the bug Something isn't working label Aug 30, 2024
@c00lc0de
Copy link

c00lc0de commented Sep 11, 2024

I'm experiencing the same issue using ECharts. It’s likely that the content height changes dynamically when the chart is rendered, which can cause the document to scroll unexpectedly

I was able to fix this issue by assigning a minimal height to the tab content.

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

No branches or pull requests

2 participants