Skip to content

Commit

Permalink
fix(VInput): add theme class (#19602)
Browse files Browse the repository at this point in the history
fixes #19598
  • Loading branch information
SonTT19 authored Apr 23, 2024
1 parent e569110 commit 97cc161
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VInput/VInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { makeComponentProps } from '@/composables/component'
import { makeDensityProps, useDensity } from '@/composables/density'
import { IconValue } from '@/composables/icons'
import { useRtl } from '@/composables/locale'
import { makeThemeProps, provideTheme } from '@/composables/theme'
import { makeValidationProps, useValidation } from '@/composables/validation'

// Utilities
Expand Down Expand Up @@ -62,6 +63,7 @@ export const makeVInputProps = propsFactory({

...makeComponentProps(),
...makeDensityProps(),
...makeThemeProps(),
...makeValidationProps(),
}, 'VInput')

Expand Down Expand Up @@ -92,6 +94,7 @@ export const VInput = genericComponent<new <T>(

setup (props, { attrs, slots, emit }) {
const { densityClasses } = useDensity(props)
const { themeClasses } = provideTheme(props)
const { rtlClasses } = useRtl()
const { InputIcon } = useInputIcon(props)

Expand Down Expand Up @@ -156,6 +159,7 @@ export const VInput = genericComponent<new <T>(
'v-input--hide-spin-buttons': props.hideSpinButtons,
},
densityClasses.value,
themeClasses.value,
rtlClasses.value,
validationClasses.value,
props.class,
Expand Down

0 comments on commit 97cc161

Please sign in to comment.