correctly handle keyboard event for button

This commit is contained in:
Nolan Lawson 2018-03-30 08:19:30 -07:00
parent 42a467ffc8
commit 6d085eea36
1 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,7 @@
pressable="true"
pressed="{{following}}"
big="true"
on:click="onFollowButtonClick()"
on:click="onFollowButtonClick(event)"
animation="{{animateFollowButton && followButtonAnimation}}"
/>
{{/if}}
@ -258,7 +258,9 @@
export default {
methods: {
async onFollowButtonClick() {
async onFollowButtonClick(e) {
e.preventDefault()
e.stopPropagation()
let accountId = this.get('accountId')
let instanceName = this.store.get('currentInstance')
let following = this.get('following')