vuejs / docs

📄 Documentation for Vue 3
https://vuejs.org
Other
2.95k stars 4.49k forks source link

[Bug] `/` can't focus the search bar when the page finished loading #2240

Open wenfangdu opened 1 year ago

wenfangdu commented 1 year ago

My cmd+k is already in use, so I use / to focus the search bar. However, / doesn't work when the page has just finished loading, it works only if I have opened the search widget before.

viniciusteixeiradias commented 1 year ago

@wenfangdu https://github.com/vuepress/vuepress-next/pull/1323

Mister-Hope commented 1 year ago

Vuejs official docs use VitePress, so wrong repo.

viniciusteixeiradias commented 1 year ago

@Mister-Hope Yes, my bad. Now it is right https://github.com/vuejs/vitepress/pull/2328.

brc-dd commented 1 year ago

Still wrong repo. It does not use the default VitePress theme. It uses https://github.com/vuejs/theme. But yeah we could consider it at the default theme too, so keeping that open for now.

viniciusteixeiradias commented 1 year ago

@brc-dd Omg, sorry hahaha. I will check the repo https://github.com/vuejs/theme.