-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed as not planned
Labels
Qv2 🔝Quasar v2 issuesQuasar v2 issuesarea/project-creationRelated to project creation process using the commands: `yarn create quasar` and `npm init quasar`Related to project creation process using the commands: `yarn create quasar` and `npm init quasar`bug/1-repro-availableA reproduction is available and needs to be confirmed.A reproduction is available and needs to be confirmed.flavour/quasar-cli-vitekind/bug 🐞mode/spa
Description
What happened?
Go to hash/id does not work on Quasar created Vue projects.
What did you expect to happen?
Should work out of the box.
Reproduction URL
https://stackblitz.com/edit/quasarframework-2fwwrg
How to reproduce?
go to src/router/index and find:
scrollBehavior: (to) => ({ left: 0, top: 0 })
change with this:
scrollBehavior: (to) => ({ left: 0, top: 0, el: to.hash || undefined })
to make it work out of the box, quasar can create project with this addition or with better solution.
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Project Creation (create-quasar), SPA Mode
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Qv2 🔝Quasar v2 issuesQuasar v2 issuesarea/project-creationRelated to project creation process using the commands: `yarn create quasar` and `npm init quasar`Related to project creation process using the commands: `yarn create quasar` and `npm init quasar`bug/1-repro-availableA reproduction is available and needs to be confirmed.A reproduction is available and needs to be confirmed.flavour/quasar-cli-vitekind/bug 🐞mode/spa