From d309fd632e8da87887d371d4a76284fe915767db Mon Sep 17 00:00:00 2001 From: uros Date: Mon, 29 Jul 2024 23:49:34 +0200 Subject: [PATCH] #6125 Fix (DatePicker, Locale) - deep merge options --- packages/core/src/config/PrimeVue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/config/PrimeVue.js b/packages/core/src/config/PrimeVue.js index ec8bdee5f..da1a71c38 100644 --- a/packages/core/src/config/PrimeVue.js +++ b/packages/core/src/config/PrimeVue.js @@ -3,6 +3,7 @@ import { FilterMatchMode } from '@primevue/core/api'; import BaseStyle from '@primevue/core/base/style'; import PrimeVueService from '@primevue/core/service'; import { inject, reactive, ref, watch } from 'vue'; +import { mergeKeys } from '@primeuix/utils'; export const defaultOptions = { ripple: false, @@ -266,7 +267,7 @@ export function setupConfig(app, PrimeVue) { export default { install: (app, options) => { - const configOptions = { ...defaultOptions, ...options }; + const configOptions = mergeKeys(defaultOptions, options); setup(app, configOptions); }