Fixed #5733 - Accordion: "Invalid watch source: undefined" and "Failed to resolve directive: ripple"
parent
12becf1f88
commit
cb2f11982f
|
@ -1,5 +1,5 @@
|
|||
<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>
|
||||
</component>
|
||||
<slot v-else :class="cx('root')" :active="active" :a11yAttrs="a11yAttrs"></slot>
|
||||
|
|
|
@ -195,7 +195,7 @@ export function setupTheme(app, PrimeVue) {
|
|||
);
|
||||
|
||||
watch(
|
||||
PrimeVue.config.theme,
|
||||
() => PrimeVue.config.theme,
|
||||
(newValue, oldValue) => {
|
||||
if (!isChanged.value) {
|
||||
Theme.setTheme(newValue);
|
||||
|
|
Loading…
Reference in New Issue