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

fix(VSlideGroup): Skip disabled elements when moving focus. #20808

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

babu-ch
Copy link
Contributor

@babu-ch babu-ch commented Dec 27, 2024

fix #20780

Description

Added recursively searching for non-disabled elements when retrieving siblingElement.

Markup:

<template>
  <v-sheet class="mx-auto" max-width="600">
    <v-slide-group show-arrows>
      <v-slide-group-item
        v-for="n in 10"
        :key="n"
        v-slot="{ isSelected, toggle }"
      >
        <v-btn
          :color="isSelected ? 'primary' : undefined"
          class="ma-2"
          rounded
          @click="toggle"
          :disabled="n%4 === 0"
        >
          Options {{ n }}
        </v-btn>
      </v-slide-group-item>
    </v-slide-group>
  </v-sheet>
</template>

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

Successfully merging this pull request may close these issues.

[Bug Report][3.7.5] [v-slide-group] Arrow key navigation is blocked by disabled items
1 participant