mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 01:12:37 +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
|
@ -154,16 +154,16 @@ export default {
|
|||
};
|
||||
},
|
||||
watch: {
|
||||
'$attrs.id': function (newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
'$attrs.id': {
|
||||
immediate: true,
|
||||
handler: function (newValue) {
|
||||
this.id = newValue || UniqueComponentId();
|
||||
}
|
||||
},
|
||||
activeStep(newValue) {
|
||||
this.d_activeStep = newValue;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.id = this.id || UniqueComponentId();
|
||||
},
|
||||
methods: {
|
||||
isStep(child) {
|
||||
return child.type.name === 'StepperPanel';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue