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
parent
a159ad44d9
commit
7e3f17c4a3
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue