correctly handle keyboard event for button
This commit is contained in:
parent
42a467ffc8
commit
6d085eea36
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue