Disabled ripple by default

pull/4972/head
Cagatay Civici 2024-01-20 00:35:05 +03:00
parent 10a4ded046
commit c7050d4c6d
3 changed files with 4 additions and 3 deletions

View File

@ -428,7 +428,7 @@ export default {
this.$primevue.config.inputStyle = value;
},
onRippleChange(value) {
this.$primevue.config.ripple = value;
this.$appState.ripple = value;
},
onDarkModeChange() {
this.$emit('darkswitch-click');
@ -474,7 +474,7 @@ export default {
return this.$appState.darkTheme;
},
rippleActive() {
return this.$primevue.config.ripple;
return this.$appState.ripple;
},
containerClass() {
return [

View File

@ -109,7 +109,7 @@ export default {
{
'layout-news-active': this.$appState.newsActive,
'p-input-filled': this.$primevue.config.inputStyle === 'filled',
'p-ripple-disabled': this.$primevue.config.ripple === false,
'p-ripple-disabled': this.$appState.ripple === false,
'layout-dark': this.$appState.darkTheme,
'layout-light': !this.$appState.darkTheme
}

View File

@ -7,6 +7,7 @@ const $appState = {
sourceType: 'options-api',
newsActive: false,
announcement: null,
ripple: false,
storageKey: 'primevue',
colorSchemeKey: 'primevue-color-scheme'
});