mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Merge pull request #5486 from i7slegend/fix/5412-twice-render
Fix #5412 - Twice render if attribute id not defined
This commit is contained in:
commit
52fc48780a
30 changed files with 151 additions and 120 deletions
|
@ -71,8 +71,11 @@ export default {
|
|||
};
|
||||
},
|
||||
watch: {
|
||||
'$attrs.id': function (newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
'$attrs.id': {
|
||||
immediate: true,
|
||||
handler: function (newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
}
|
||||
},
|
||||
activeItemPath(newPath) {
|
||||
if (!this.popup) {
|
||||
|
@ -86,9 +89,6 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.id = this.id || UniqueComponentId();
|
||||
},
|
||||
beforeUnmount() {
|
||||
this.unbindOutsideClickListener();
|
||||
this.unbindResizeListener();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue