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

使用 AntDesignVue Pagination 组件中,发现单击某个页数切换,会导致页面会回滚到 Top #3950

Closed
4 tasks done
linpengteng opened this issue Jun 9, 2024 · 3 comments
Labels

Comments

@linpengteng
Copy link

Describe the bug

单击 AntDesignVue Pagination 组件某页进行切换时,会导致当前页面会滚动到 Top。

Reproduction

后排查发现 <a rel="nofollow"> 这种也会起到锚链接的作用。但在其他非 vitepress 的 SPA 页面中使用,却不会有这个影响。我不太理解。

Expected behavior

消除 <a rel="nofollow"> 本不该有的 锚链接影响。

System Info

System:
    OS: macOS 14.5
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 2.63 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 9.2.0 - /usr/local/bin/pnpm
    bun: 1.1.12 - /usr/local/bin/bun
  Browsers:
    Chrome: 125.0.6422.142
    Safari: 17.5
  npmPackages:
    vitepress: ^1.2.3 => 1.2.3

Additional context

No response

Validations

@linpengteng linpengteng added the bug: pending triage Maybe a bug, waiting for confirmation label Jun 9, 2024
@brc-dd
Copy link
Member

brc-dd commented Jun 9, 2024

temporary workaround - add vp-raw class to one of it's parent.

@brc-dd brc-dd added bug client and removed bug: pending triage Maybe a bug, waiting for confirmation labels Jun 9, 2024
@brc-dd brc-dd closed this as completed in 6461f5d Jun 9, 2024
@linpengteng
Copy link
Author

class="vp-raw" is effective, Thank you.

@brc-dd
Copy link
Member

brc-dd commented Jun 10, 2024

It will be fixed in next version. You won't need it then.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants