Fixed #5733 - Accordion: "Invalid watch source: undefined" and "Failed to resolve directive: ripple"
parent
12becf1f88
commit
cb2f11982f
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue