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

id="app" twice on div below body #8

Open
apsweb opened this issue Jul 18, 2020 · 6 comments
Open

id="app" twice on div below body #8

apsweb opened this issue Jul 18, 2020 · 6 comments

Comments

@apsweb
Copy link

apsweb commented Jul 18, 2020

it seems the setup of Default.vue causes the id="app" to be placed twice on the div below the body tag

@TerabyteTiger
Copy link
Owner

Hi! Thanks for reporting this!

image

I don't see id="app" twice when I run the app, and I'm only seeing one <v-app> when I search my repo in VS Code.

Could you elaborate on where you're seeing this or what is causing it? Do you have a repo I can peek at?

@apsweb
Copy link
Author

apsweb commented Jul 21, 2020

Hi! Thanks for getting back to me.

It seems to happen on build. This is a live demo from @DavidCouronne https://gridsome-vuetify-blog-starter.netlify.app
If you take a look in the source (not chrome dev tools) you'll see id="app" twice on the div below the body.

@TerabyteTiger
Copy link
Owner

This appears to be happening because Gridsome and Vuetify's v-app element are both adding it to the page.

Is this causing any issues for you?

@apsweb
Copy link
Author

apsweb commented Jul 22, 2020 via email

@TerabyteTiger
Copy link
Owner

You can specify a different id on the <v-app> element like this: <v-app id="newId">

I don't think the id being duplicated would cause any issues that I'm aware of, but I may set a custom id also in case I'm incorrect. Thanks again for letting me know about this!

source

@apsweb
Copy link
Author

apsweb commented Jul 23, 2020

Ahhh that was easy - thanks a lot! Really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants