vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

fix(VDatePicker): using the start range that has been cleared

Open TIM56887 opened this issue 1 year ago • 0 comments

Description

fixes #19854 Added a condition to reset the rangeStart.value to undefined when the model's value array is empty

Markup:

<template>
  <v-container>
    <v-row justify="space-around">
      <v-date-picker v-model="date" multiple="range"></v-date-picker>
    </v-row>
    <v-row justify="space-around">
      <v-btn @click="clearDate">Clear</v-btn>
    </v-row>
  </v-container>
</template>

<script setup>
  import { ref } from 'vue'

  const date = ref([])

  const clearDate = () => {
    date.value = []
  }
</script>

TIM56887 avatar May 23 '24 09:05 TIM56887