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

View file

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