From 8b9cca4079e4f31258c0a83592db7bf059e36bb6 Mon Sep 17 00:00:00 2001 From: SonTT19 <49301480+SonTT19@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:24:53 +0700 Subject: [PATCH] fix(VField): only render field label if label is passed (#20722) fixes #20427 --- 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,