Skip to content

Commit 9d30fa5

Browse files
authored
docs(VDatePicker): remove display-value from props list (#20879)
resolves #20863
1 parent cb8b44a commit 9d30fa5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/vuetify/src/components/VDatePicker/VDatePickerMonth.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { MaybeTransition } from '@/composables/transition'
1212

1313
// Utilities
1414
import { computed, ref, shallowRef, watch } from 'vue'
15-
import { genericComponent, propsFactory } from '@/util'
15+
import { genericComponent, omit, propsFactory } from '@/util'
1616

1717
// Types
1818
import type { PropType } from 'vue'
@@ -41,7 +41,7 @@ export const makeVDatePickerMonthProps = propsFactory({
4141
default: 'picker-reverse-transition',
4242
},
4343

44-
...makeCalendarProps(),
44+
...omit(makeCalendarProps(), ['displayValue']),
4545
}, 'VDatePickerMonth')
4646

4747
export const VDatePickerMonth = genericComponent<VDatePickerMonthSlots>()({

packages/vuetify/src/composables/calendar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type { PropType } from 'vue'
1313
export interface CalendarProps {
1414
allowedDates: unknown[] | ((date: unknown) => boolean) | undefined
1515
disabled: boolean
16-
displayValue: unknown
16+
displayValue?: unknown
1717
modelValue: unknown[] | undefined
1818
max: unknown
1919
min: unknown

0 commit comments

Comments
 (0)