#6125 Fix (DatePicker, Locale) - deep merge options

pull/6143/head
uros 2024-07-29 23:49:34 +02:00
parent 81f55dade7
commit d309fd632e
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import { FilterMatchMode } from '@primevue/core/api';
import BaseStyle from '@primevue/core/base/style'; import BaseStyle from '@primevue/core/base/style';
import PrimeVueService from '@primevue/core/service'; import PrimeVueService from '@primevue/core/service';
import { inject, reactive, ref, watch } from 'vue'; import { inject, reactive, ref, watch } from 'vue';
import { mergeKeys } from '@primeuix/utils';
export const defaultOptions = { export const defaultOptions = {
ripple: false, ripple: false,
@ -266,7 +267,7 @@ export function setupConfig(app, PrimeVue) {
export default { export default {
install: (app, options) => { install: (app, options) => {
const configOptions = { ...defaultOptions, ...options }; const configOptions = mergeKeys(defaultOptions, options);
setup(app, configOptions); setup(app, configOptions);
} }