From 934228846a83468657429250f53e6601a4f9c4ad Mon Sep 17 00:00:00 2001 From: WebDevNerdStuff Date: Tue, 21 May 2024 05:15:20 -0700 Subject: [PATCH] fix(defaults): allow null component and global values (#19842) fixes #19783 --- packages/vuetify/src/composables/defaults.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/vuetify/src/composables/defaults.ts b/packages/vuetify/src/composables/defaults.ts index 5f211f56870..701c61824b9 100644 --- a/packages/vuetify/src/composables/defaults.ts +++ b/packages/vuetify/src/composables/defaults.ts @@ -106,7 +106,9 @@ export function internalUseDefaults ( if (prop === 'class' || prop === 'style') { return [componentDefaults.value?.[prop], propValue].filter(v => v != null) } else if (typeof prop === 'string' && !propIsDefined(vm.vnode, prop)) { - return componentDefaults.value?.[prop] ?? defaults.value?.global?.[prop] ?? propValue + return componentDefaults.value?.[prop] !== undefined ? componentDefaults.value?.[prop] + : defaults.value?.global?.[prop] !== undefined ? defaults.value?.global?.[prop] + : propValue } return propValue },