fixes: Close popper after do some actions

This commit is contained in:
AkiraFukushima 2018-07-11 08:43:36 +09:00
parent 99b35e3a58
commit 8b5674818e
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,7 @@
</div>
<div class="clearfix"></div>
<div class="more">
<popper trigger="click" :options="{placement: 'bottom'}">
<popper trigger="click" :options="{placement: 'bottom'}" ref="popper">
<div class="popper">
<ul class="menu-list">
<li role="button" @click="openBrowser(account)">
@ -160,10 +160,12 @@ export default {
},
openBrowser (account) {
shell.openExternal(account.url)
this.$refs.popper.doClose()
},
addToList (account) {
this.$store.dispatch('TimelineSpace/Modals/ListMembership/setAccount', account)
this.$store.dispatch('TimelineSpace/Modals/ListMembership/changeModal', true)
this.$refs.popper.doClose()
}
}
}