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

[Bug report] Links with anchors don't scroll to the correct position *the first time* #1533

Open
smirnoffmv opened this issue Mar 29, 2024 · 3 comments
Labels
bug Something isn't working package:client

Comments

@smirnoffmv
Copy link

smirnoffmv commented Mar 29, 2024

Description

When I open the anchor link and the page content is too big, it doesn't scroll to the end! If you go back and click on the same link again, it works fine.

When I click on the anchor link for the first time, I get to the wrong place. In the wrong place at all

bug1

bug2

If I click on the back arrow in the browser and click on the same link again, I will already get there correct. Apparently the page has already loaded for the second time

bug3

A similar problem has already been discussed here, and apparently has not been solved: vuejs/vuepress#1499

Reproduction

https://help.stack-it.ru/web/ul/160_web_tk_ul_raschotd-master/130_web_tk_ul_energy/4_wk_diff_tar.html#расчет-точек-учета-ику-в-договорах-на-ресурс

Used Package Manager

npm

System Info

Environment Info:

  System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i5-12400
  Binaries:
    Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 10.4.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Chromium (123.0.2420.65)
  npmPackages:
    @vuepress/core:  2.0.0-rc.7
    @vuepress/theme-default: Not Found
    vuepress: ^2.0.0-rc.7 => 2.0.0-rc.7
  npmGlobalPackages:
    vuepress: Not Found
@Mister-Hope Mister-Hope added the bug Something isn't working label Mar 30, 2024
@Mister-Hope
Copy link
Member

Mister-Hope commented Apr 7, 2024

@Mister-Hope Mister-Hope transferred this issue from vuepress/core Apr 7, 2024
@Mister-Hope Mister-Hope transferred this issue from vuepress/ecosystem Apr 7, 2024
@Mister-Hope
Copy link
Member

Mister-Hope commented Apr 7, 2024

BTW, I am not reproducing your issue with your reproduction link when I clear my cache and choose "Slow 3G" in network panel.

@smirnoffmv
Copy link
Author

Yes, with this setting, the anchor transition works correctly, but do not turn on this preset all the time)

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

No branches or pull requests

2 participants