diff --git a/components/lib/calendar/style/CalendarStyle.js b/components/lib/calendar/style/CalendarStyle.js index 79fcbb639..b6554035c 100644 --- a/components/lib/calendar/style/CalendarStyle.js +++ b/components/lib/calendar/style/CalendarStyle.js @@ -172,7 +172,7 @@ const classes = { 'p-focus': state.focused || state.overlayVisible } ], - input: ({ props }) => ['p-inputtext p-component', { 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled' }], + input: ({ props, instance }) => ['p-inputtext p-component', { 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled' }], dropdownButton: 'p-datepicker-trigger', inputIcon: 'p-datepicker-trigger-icon', panel: ({ instance, props, state }) => [