Skip to content

Commit

Permalink
fix(VCheckbox): show correct color in error state (#19286)
Browse files Browse the repository at this point in the history
fixes #19127

Co-authored-by: Son Tran <stt@cct-technology.com>
  • Loading branch information
SonTT19 and Son Tran authored Feb 29, 2024
1 parent cfd92c1 commit 7029f06
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VCheckbox/VCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const VCheckbox = genericComponent<new <T>(
messagesId,
isDisabled,
isReadonly,
isValid,
}) => (
<VCheckboxBtn
{ ...checkboxProps }
Expand All @@ -83,6 +84,7 @@ export const VCheckbox = genericComponent<new <T>(
disabled={ isDisabled.value }
readonly={ isReadonly.value }
{ ...controlAttrs }
error={ isValid.value === false }
v-model={ model.value }
onFocus={ focus }
onBlur={ blur }
Expand Down

0 comments on commit 7029f06

Please sign in to comment.