Skip to content

Commit

Permalink
fix(VDateInput): disable in disabled forms (#20982)
Browse files Browse the repository at this point in the history
fixes #20543

Co-authored-by: Kael <kaelwd@gmail.com>
  • Loading branch information
mtdvlpr and KaelWD authored Feb 17, 2025
1 parent 32e5747 commit e0ec39f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const makeVDatePickerControlsProps = propsFactory({
default: undefined,
},
disabled: {
type: [Boolean, String, Array] as PropType<boolean | string | string[]>,
default: false,
type: [Boolean, String, Array] as PropType<boolean | string | string[] | null>,
default: null,
},
nextIcon: {
type: IconValue,
Expand Down
5 changes: 4 additions & 1 deletion packages/vuetify/src/composables/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export interface CalendarProps {
// Composables
export const makeCalendarProps = propsFactory({
allowedDates: [Array, Function] as PropType<unknown[] | ((date: unknown) => boolean)>,
disabled: Boolean,
disabled: {
type: Boolean,
default: null,
},
displayValue: null as any as PropType<unknown>,
modelValue: Array as PropType<unknown[]>,
month: [Number, String],
Expand Down

0 comments on commit e0ec39f

Please sign in to comment.