Skip to content

Commit

Permalink
fix(VFileInput): accept null modelValue
Browse files Browse the repository at this point in the history
fixes #16053
  • Loading branch information
KaelWD committed Dec 20, 2022
1 parent 2589e94 commit f505f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/components/VFileInput/VFileInput.tsx
Expand Up @@ -203,7 +203,7 @@ export const VFileInput = defineComponent({
/>

<div class={ fieldClass }>
{ model.value.length > 0 && (
{ !!model.value?.length && (
slots.selection ? slots.selection({
fileNames: fileNames.value,
totalBytes: totalBytes.value,
Expand Down Expand Up @@ -233,7 +233,7 @@ export const VFileInput = defineComponent({
<span />

<VCounter
active={ !!model.value.length }
active={ !!model.value?.length }
value={ counterValue.value }
v-slots={ slots.counter }
/>
Expand Down

0 comments on commit f505f7f

Please sign in to comment.