fix(#4953): use beforeMount to generate unique component id (#4954)

This commit is contained in:
Alexander 2024-01-16 14:28:03 +03:00 committed by GitHub
parent 23360e7654
commit e8b5b8f3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 43 additions and 28 deletions

View file

@ -93,8 +93,10 @@ export default {
outsideClickListener: null,
container: null,
menubar: null,
mounted() {
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
this.bindMatchMediaListener();
},
beforeUnmount() {