Skip to content

Commit 84f70ef

Browse files
committed
fix(VFileUpload): hide-browse should hide divider as well
1 parent 36d3d3c commit 84f70ef

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/vuetify/src/labs/VFileUpload/VFileUploadDropzone.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,16 +315,15 @@ export const VFileUploadDropzone = genericComponent<VFileUploadDropzoneSlots>()(
315315

316316
{ props.density === 'default' && (
317317
<>
318-
<div key="upload-divider" class="v-file-upload-divider">
319-
{ slots.divider?.() ?? (
320-
<VDivider { ...dividerProps }>
321-
{ t(props.dividerText) }
322-
</VDivider>
323-
)}
324-
</div>
325-
326318
{ hasBrowse && (
327319
<>
320+
<div key="upload-divider" class="v-file-upload-divider">
321+
{ slots.divider?.() ?? (
322+
<VDivider { ...dividerProps }>
323+
{ t(props.dividerText) }
324+
</VDivider>
325+
)}
326+
</div>
328327
{ !slots.browse ? (
329328
<VBtn
330329
readonly={ disabled }

0 commit comments

Comments
 (0)