SpeedDial hideOnClickOutside not working

this.bindDocumentClickListener() is called in beforeMount without case checking. update code to check props hideOnClickOutside before bind listener.
pull/1544/head
thomaswan 2021-09-15 19:21:33 +08:00 committed by GitHub
parent a159ad44d9
commit 7e3f17c4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -103,14 +103,12 @@ export default {
this.list.style.setProperty('--item-diff-y', `${hDiff / 2}px`);
}
}
},
beforeMount() {
if (this.hideOnClickOutside) {
this.bindDocumentClickListener();
}
},
beforeMount() {
this.bindDocumentClickListener();
},
methods: {
onItemClick(e, item) {
if (item.command) {