mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fix #5412 - Twice render if attribute id not defined
This commit is contained in:
parent
7c2e3eac7e
commit
3a134dd561
30 changed files with 162 additions and 131 deletions
|
@ -88,9 +88,12 @@ export default {
|
|||
};
|
||||
},
|
||||
watch: {
|
||||
'$attrs.id': function (newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
}
|
||||
'$attrs.id': {
|
||||
immediate: true,
|
||||
handler: function (newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
},
|
||||
},
|
||||
},
|
||||
documentKeydownListener: null,
|
||||
container: null,
|
||||
|
@ -124,8 +127,6 @@ export default {
|
|||
this.mask = null;
|
||||
},
|
||||
mounted() {
|
||||
this.id = this.id || UniqueComponentId();
|
||||
|
||||
if (this.breakpoints) {
|
||||
this.createStyle();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue