Merge pull request #6143 from avramz/master

#6125 Fix (DatePicker, Locale) - deep merge options during install
pull/6161/head
Tuğçe Küçükoğlu 2024-08-01 10:59:12 +03:00 committed by GitHub
commit 18f3b744bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 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);
}