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

@ -73,9 +73,10 @@ export default {
resizeListener: null,
container: null,
list: null,
mounted() {
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
if (!this.popup) {
this.bindResizeListener();
this.bindOutsideClickListener();