Skip to content

Commit 253e75e

Browse files
committed
fix(VDateInput): avoid VField, VInput props leaking to VPicker
1 parent 96f6479 commit 253e75e

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

packages/vuetify/src/labs/VDateInput/VDateInput.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ export const makeVDateInputProps = propsFactory({
6767
...omit(makeVDatePickerProps({
6868
hideHeader: true,
6969
showAdjacentMonths: true,
70-
}), ['active', 'location', 'rounded']),
70+
}), [
71+
'active',
72+
'location',
73+
'rounded',
74+
'height',
75+
'minHeight',
76+
'maxHeight',
77+
]),
7178
}, 'VDateInput')
7279

7380
export const VDateInput = genericComponent<new <
@@ -246,7 +253,15 @@ export const VDateInput = genericComponent<new <
246253

247254
useRender(() => {
248255
const confirmEditProps = VConfirmEdit.filterProps(props)
249-
const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']))
256+
const datePickerProps = VDatePicker.filterProps(omit(props, [
257+
'active',
258+
'bgColor',
259+
'location',
260+
'rounded',
261+
'maxWidth',
262+
'minWidth',
263+
'width',
264+
]))
250265
const datePickerSlots = pick(slots, ['title', 'header', 'day', 'month', 'year'])
251266
const textFieldProps = VTextField.filterProps(omit(props, ['placeholder']))
252267

0 commit comments

Comments
 (0)