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

Merged
merged 5 commits into from
Jan 16, 2025

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>

@KaelWD KaelWD changed the title fix(VSlideGroup): Skip disabled elements when moving focus. fix(VSlideGroup): skip disabled elements when moving focus Jan 16, 2025
@KaelWD KaelWD merged commit cb2d96b into vuetifyjs:master Jan 16, 2025
8 checks passed
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
2 participants