Fixed #5733 - Accordion: "Invalid watch source: undefined" and "Failed to resolve directive: ripple"

pull/5756/head
Mert Sincan 2024-05-14 10:25:15 +01:00
parent 12becf1f88
commit cb2f11982f
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<component v-if="!asChild" :is="as" v-ripple :class="cx('root')" v-bind="attrs"> <component v-if="!asChild" :is="as" :class="cx('root')" v-bind="attrs">
<slot></slot> <slot></slot>
</component> </component>
<slot v-else :class="cx('root')" :active="active" :a11yAttrs="a11yAttrs"></slot> <slot v-else :class="cx('root')" :active="active" :a11yAttrs="a11yAttrs"></slot>

View File

@ -195,7 +195,7 @@ export function setupTheme(app, PrimeVue) {
); );
watch( watch(
PrimeVue.config.theme, () => PrimeVue.config.theme,
(newValue, oldValue) => { (newValue, oldValue) => {
if (!isChanged.value) { if (!isChanged.value) {
Theme.setTheme(newValue); Theme.setTheme(newValue);