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

Scrollable dialog is not working as it's supposed to be #139

Open
renaldasrep opened this issue Oct 21, 2021 · 1 comment
Open

Scrollable dialog is not working as it's supposed to be #139

renaldasrep opened this issue Oct 21, 2021 · 1 comment

Comments

@renaldasrep
Copy link

Scrollable dialog is not working as it should

Only the v-card-text part is supposed to be scrollable when using scrollable: true, instead the whole card gets a scrollbar and v-card-title + v-card-actions are not visible at all times like they're supposed to be

I think it is because the whole card is wrapped in <div class="v-dialog-wrapper">...<div> similar issue described here, and the answer is that v-dialog scrollable needs a specific structure
vuetifyjs/vuetify#3713 (comment)

I'm using $dialog.showAndWait(Component, { ... })
My component:

<template>
  <v-card outlined>
    <v-card-title>
      Are you sure?
    </v-card-title>
    <v-divider />
    <v-card-text>
      ... content that needs a scrollbar ...
    </v-card-text>
    <v-divider />
    <v-card-actions>
      <v-btn
        text
        @click="$emit('submit', false)"
      >
        Close
      </v-btn>
      <v-spacer />
      <v-btn
        color="primary"
        text
        @click="$emit('submit', true)"
      >
        Confirm
      </v-btn>
    </v-card-actions>
  </v-card>
</template>

<script>
export default {
  layout: [
    'default',
    {
      width: 800,
      scrollable: true,
      showClose: false
    }
  ]
}
</script>
@BrahimMasmoudi
Copy link

Hello, did you find a solution for this problem please ?
in my case, even the close button is scrolled with the v-card.
thanks in advance

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