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

[Bug Report][3.0.0] V-App-Bar Collapse On Reload Page #15202

Open
BlackYuzia opened this issue Jun 3, 2022 · 27 comments · Fixed by #15229
Open

[Bug Report][3.0.0] V-App-Bar Collapse On Reload Page #15202

BlackYuzia opened this issue Jun 3, 2022 · 27 comments · Fixed by #15229
Assignees
Labels
E: layout Layout composable SSR SSR T: bug Functionality that does not work as intended/expected upstream Problem with a third party library that we may have to work around

Comments

@BlackYuzia
Copy link

BlackYuzia commented Jun 3, 2022

Environment

Vuetify Version: 3.0.0-beta.3
Vue Version: 3.2.36
Browsers: Chrome 102.0.0.0
OS: Windows 10

Steps to reproduce

  1. You should run server (npm install && npm run dev OR npm install && npm run build && npm run start)
  2. Open / page
  3. Reload page
  4. Look at app bar
  5. Bar collapse for a few seconds (in run dev mode this collapse a bit longer)

Expected Behavior

App bar didn't collapse or something, duo page reload

Actual Behavior

Bar collapse on every page reload. After a few seconds, bar return to valid position. If you disable javascript, app bar didn't return to required position.

Reproduction Link

https://gitlab.com/BlackYuzia/nuxt-vuetify

Screenshots

Collapse example:
image

Un Collapsed after a few seconds:
image

@besnikh
Copy link

besnikh commented Jun 26, 2022

I have the same issue working on Nuxt 3 and Vuetify 3.0.0-beta.3
Is there any workaround ?
I tried to use the but it's not working in Nuxt, I tried in layouts and App.vue as well

Cheers

@r-this
Copy link

r-this commented Jul 17, 2022

Same issue here. Nuxt 3 and Vuetify 3.0.0-beta.5. Similar issue if I tried replacing it with a v-toolbar instead (except v-toolbar starts bigger then contracts). Even without a drawer, it still starts each reload in the small state before expanding to the full width of the screen once the page is fully loaded.

Using a card as a workaround for now.

@johnleider johnleider added the upstream Problem with a third party library that we may have to work around label Aug 17, 2022
@johnleider johnleider modified the milestones: v3.0.0-beta, v3.0.x Aug 17, 2022
@johnleider johnleider changed the title [Bug Report][3.0.0-beta.3] V-App-Bar Collapse On Reload Page [Bug Report][3.0.0] V-App-Bar Collapse On Reload Page Nov 17, 2022
@richardordinario
Copy link

richardordinario commented Nov 25, 2022

This is the workaround I made using layouts

inside your template
v-app v-if="!loading"
etc...

<script setup> const loading = ref(true) onMounted(() => { loading.value = false }) </script>

@ChristopheCVB
Copy link

<v-app-bar style="width: 100%">

Is what I use as a workaround

@cheetamaru
Copy link

cheetamaru commented Dec 19, 2022

Workaround for height collapsing:

<template>
    <div>
        <v-app>
            <v-app-bar ... style="width: 100%">
            ...
            </v-app-bar>
            <v-fade-transition leave-absolute>
                <div v-if="isExtraSpaceAdded" style="height: 48px" />
            </v-fade-transition>
            ...
        </v-app>
    </div>
</template>

<script setup>
const isExtraSpaceAdded = ref(true)

onMounted(() => {
  isExtraSpaceAdded.value = false
})
</script>

height: 48px is a heigth value of the v-app-bar.

Hope this bug will be fixed soon.

@r-this
Copy link

r-this commented Dec 20, 2022 via email

@KaelWD KaelWD modified the milestones: v3.0.x, v3.1.x Jan 6, 2023
@pavloniym
Copy link

Still waiting ...
@cheetamaru workaround is working, but it is a hack ...

@BlackYuzia

This comment was marked as off-topic.

@KaelWD
Copy link
Member

KaelWD commented May 3, 2023

This is still blocked by vuejs/core#6095

@KaelWD KaelWD added this to the v3.x.x milestone May 3, 2023
@mostafaznv
Copy link

mostafaznv commented Jul 18, 2023

I have the same issue working on nuxt@3.6.3 and vuetify@3.3.8
Is there any workaround?

@richardordinario
Copy link

richardordinario commented Jul 24, 2023

I have the same issue working on nuxt@3.6.3 and vuetify@3.3.8 Is there any workaround?

try using <client></client>

@KaelWD
Copy link
Member

KaelWD commented Sep 10, 2023

If you're wrapping the whole page in <client> you might as well just disable ssr entirely.

@mubaidr
Copy link
Contributor

mubaidr commented Oct 6, 2023

For you can simply set following styles on VMain to overcome this issue:

<VApp
  <VAppBar>
    ... your content here
  </VAppBar>
  <VMain
      style="
        --v-layout-left: 0px;
        --v-layout-right: 0px;
        --v-layout-top: 64px;
        --v-layout-bottom: 44px;
      "
    >
    ... your content here
  </VMain>
</VApp>

@johnleider
Copy link
Member

This should be better on newer versions, but we're still waiting on upstream.

@kingyue737
Copy link
Contributor

vuejs/core#7290 is released in vue 3.4 rc.1
Maybe it can be fixed now?

@devonik
Copy link

devonik commented Dec 27, 2023

Mh i tried it with vue 3.4.0 rc3 but still weird rendering https://stackblitz.com/edit/github-wudebh-ppjcxg?file=plugins%2Fvuetify.ts

@kingyue737
Copy link
Contributor

@devonik #15229 has not been merged

@devonik
Copy link

devonik commented Dec 27, 2023

ui thanks there are so many issues regarding this. Must be a good feeling to able to finish them all

@devonik
Copy link

devonik commented Jan 8, 2024

Any news for this ?

@johnleider
Copy link
Member

Working on it. Since we use TSX, Vue 3.4 requires changes on our end.

@johnleider johnleider self-assigned this Jan 8, 2024
@johnleider johnleider modified the milestones: v3.x.x, v3.6.0 (Nebula) Jan 26, 2024
@KaelWD KaelWD self-assigned this Feb 8, 2024
@angelorc
Copy link

We have the same bug

Link: https://bitsong.studio
Repo: https://github.com/bitsongofficial/studio

vuetify_bug-2024-02-13_16.32.37.mp4

@KaelWD KaelWD closed this as completed Feb 14, 2024
@Luferov
Copy link

Luferov commented Jul 13, 2024

This bug is still exist

image

@johnleider
Copy link
Member

Please create a new issue. https://issues.vuetifyjs.com/

@Luferov
Copy link

Luferov commented Jul 18, 2024

Please create a new issue. https://issues.vuetifyjs.com/

Can't do this

image

@pavloniym
Copy link

On 3.7 - this bug exists

@KaelWD
Copy link
Member

KaelWD commented Sep 30, 2024

Suspense is still broken, we had to revert #15229.

@KaelWD KaelWD reopened this Sep 30, 2024
@KaelWD KaelWD removed this from the v3.6.0 (Nebula) milestone Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: layout Layout composable SSR SSR T: bug Functionality that does not work as intended/expected upstream Problem with a third party library that we may have to work around
Projects
None yet
Development

Successfully merging a pull request may close this issue.