Skip to content

Conversation

@J-Sek
Copy link
Contributor

@J-Sek J-Sek commented Dec 3, 2025

Description

  • resolves problem when using strictTemplates
image

Markup:

<template>
  <v-app>
    <v-container>

      <v-sheet elevation="4">
        <v-tabs color="primary" v-model="tab" @update:model-value="">
          <v-tab value="one">Item One</v-tab>
          <v-tab value="two">Item Two</v-tab>
          <v-tab value="three">Item Three</v-tab>
        </v-tabs>

        <v-divider />
        <v-tabs-window v-model="tab" @update:model-value="">
          <v-tabs-window-item value="one">
            <v-sheet class="pa-5" color="purple">One</v-sheet>
          </v-tabs-window-item>
          <v-tabs-window-item value="two">
            <v-sheet class="pa-5" color="orange">Two</v-sheet>
          </v-tabs-window-item>
          <v-tabs-window-item value="three">
            <v-sheet class="pa-5" color="brown">Three</v-sheet>
          </v-tabs-window-item>
        </v-tabs-window>
      </v-sheet>


	<!-- for comparison -->
      <v-slide-group v-model="tab" @update:model-value="" />
      <v-date-picker v-model="tab" @update:model-value="" />

    </v-container>
  </v-app>
</template>

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

  const tab = ref('one')
</script>

@KaelWD
Copy link
Member

KaelWD commented Dec 3, 2025

A few more places this might apply:

labs/VDateInput/VDateInput.tsx
104:    'update:modelValue': (val: unknown) => true,

components/VDatePicker/VDatePickerMonth.tsx
69:    'update:modelValue': (date: unknown) => true,

components/VStepper/VStepperWindow.tsx
22:    'update:modelValue': (v: unknown) => true,

components/VStepper/VStepper.tsx
96:    'update:modelValue': (v: unknown) => true,

components/VExpansionPanel/VExpansionPanels.tsx
71:    'update:modelValue': (val: unknown) => true,

components/VTabs/VTabsWindow.tsx
24:    'update:modelValue': (v: unknown) => true,

components/VTabs/VTabs.tsx
99:    'update:modelValue': (v: unknown) => true,

components/VTreeview/VTreeview.tsx
75:    'update:modelValue': (val: unknown) => true,

@J-Sek J-Sek force-pushed the fix/ts-tabs-model branch from b3e43c3 to 2350422 Compare December 3, 2025 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants