pull/6480/head
tugcekucukoglu 2024-09-25 14:19:22 +03:00
parent 5cc85b2b0e
commit da45ca535a
1 changed files with 5 additions and 4 deletions

View File

@ -297,6 +297,7 @@ import {
getOuterHeight, getOuterHeight,
getOuterWidth, getOuterWidth,
isClickable, isClickable,
isClient,
removeClass, removeClass,
setAttribute setAttribute
} from '@primeuix/utils/dom'; } from '@primeuix/utils/dom';
@ -442,7 +443,10 @@ export default {
} }
}, },
mounted() { mounted() {
this.$el.setAttribute(this.attributeSelector, ''); if (isClient()) {
this.attributeSelector = UniqueComponentId();
this.$el.setAttribute(this.attributeSelector, '');
}
if (this.isStateful()) { if (this.isStateful()) {
this.restoreState(); this.restoreState();
@ -2031,9 +2035,6 @@ export default {
return isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every((v) => this.selection.some((s) => this.equals(s, v))); return isNotEmpty(val) && this.selection && Array.isArray(this.selection) && val.every((v) => this.selection.some((s) => this.equals(s, v)));
} }
}, },
attributeSelector() {
return UniqueComponentId();
},
groupRowSortField() { groupRowSortField() {
return this.sortMode === 'single' ? this.sortField : this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null; return this.sortMode === 'single' ? this.sortField : this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null;
}, },