From ef974a637289bb6afd614de71b90c8f063a0e1e8 Mon Sep 17 00:00:00 2001 From: SonTT19 Date: Fri, 22 Nov 2024 11:21:24 +0700 Subject: [PATCH] fix(VField): only render field label if label is passed --- packages/vuetify/src/components/VField/VField.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/vuetify/src/components/VField/VField.tsx b/packages/vuetify/src/components/VField/VField.tsx index b3d658c127a..6ad56c5efdb 100644 --- a/packages/vuetify/src/components/VField/VField.tsx +++ b/packages/vuetify/src/components/VField/VField.tsx @@ -303,9 +303,11 @@ export const VField = genericComponent( )} - - { label() } - + { hasLabel.value && ( + + { label() } + + )} { slots.default?.({ ...slotProps.value,