vitepress
vitepress copied to clipboard
When clicking on the favorite and delete buttons in the docSearch box, the link will jump
Describe the bug
When clicking on the favorite and delete buttons in the docSearch box, the link will jump.
Reproduction
https://vitepress.vuejs.org/
Expected behavior
When clicking on the favorite and delete buttons in the docSearch box, the link do not jump.
System Info
System:
OS: Windows 10 10.0.19044
CPU: (8) x64 Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz
Memory: 2.59 GB / 15.9 GB
Binaries:
Node: 16.10.0 - C:\Program Files\nodejs\node
Yarn: 1.22.17 - C:\Program Files\nodejs\yarn
npm: 7.24.0 - C:\Program Files\nodejs\npm
pnpm: 7.2.1 - C:\Program Files\nodejs\pnpm
Browsers:
Chromium (104.0.5112.79)
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
@brc-dd Hi, I submitted a PR that included a solution.
Sorry, but this fix should not be required at our end. According to HTML5 spec, a button cannot be nested inside an anchor tag. DocSearch is creating invalid HTML. I'll create an issue there.
Ok, I will close this pr, thanks for your work. 😀