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(VItemGroup): allow null values #14436

Merged
merged 1 commit into from
Nov 30, 2021
Merged

fix(VItemGroup): allow null values #14436

merged 1 commit into from
Nov 30, 2021

Conversation

KaelWD
Copy link
Member

@KaelWD KaelWD commented Nov 25, 2021

Description

fixes #9073
I couldn't find any justification for this in #5009. There is a chance this change could break anything relying on that behaviour but it seems pretty obtuse.

Markup:

<template>
  <v-app>
    <v-container>
      <v-radio-group v-model="selected">
        <v-radio
          label="Yes"
          :value="true"
        ></v-radio>
        <v-radio
          label="No"
          :value="false"
        ></v-radio>
        <v-radio
          label="N/A"
          :value="null"
        ></v-radio>
      </v-radio-group>

      <v-tabs>
        <v-tab>Tab</v-tab>
        <v-tab>Tab</v-tab>
        <v-tab>Tab</v-tab>
      </v-tabs>

      <pre>{{ String(selected) }}</pre>
    </v-container>
  </v-app>
</template>

<script>
  export default {
    data: () => ({
      selected: undefined,
    }),
  }
</script>

@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected C: VItemGroup VItemGroup labels Nov 25, 2021
@KaelWD KaelWD added this to the v2.6.x milestone Nov 25, 2021
@KaelWD KaelWD self-assigned this Nov 25, 2021
@KaelWD KaelWD merged commit a0dd90d into master Nov 30, 2021
@KaelWD KaelWD deleted the fix/9073-null-radio branch November 30, 2021 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VItemGroup VItemGroup T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Cannot have a radio box corresponding to a null value
2 participants