Skip to content

Commit

Permalink
fix(VField): prevent rendering clear button when disabled (#20821)
Browse files Browse the repository at this point in the history
fixes #20818
  • Loading branch information
babu-ch authored Jan 15, 2025
1 parent f9ac620 commit 210488a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VField/VField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const VField = genericComponent<new <T>(
useRender(() => {
const isOutlined = props.variant === 'outlined'
const hasPrepend = !!(slots['prepend-inner'] || props.prependInnerIcon)
const hasClear = !!(props.clearable || slots.clear)
const hasClear = !!(props.clearable || slots.clear) && !props.disabled
const hasAppend = !!(slots['append-inner'] || props.appendInnerIcon || hasClear)
const label = () => (
slots.label
Expand Down

0 comments on commit 210488a

Please sign in to comment.