Skip to content

Commit

Permalink
fix(defaults): skip merge if undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed May 24, 2023
1 parent 070e2aa commit 7c417af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/composables/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export function provideDefaults (
const reset = unref(options?.reset)
const root = unref(options?.root)

if (providedDefaults.value == null && !(scoped || reset || root)) return injectedDefaults.value

let properties = mergeDeep(providedDefaults.value, { prev: injectedDefaults.value })

if (scoped) return properties
Expand Down

0 comments on commit 7c417af

Please sign in to comment.