From 6d085eea360a48db41850436b6c20b20cbf3412d Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 30 Mar 2018 08:19:30 -0700 Subject: [PATCH] correctly handle keyboard event for button --- routes/_components/AccountProfile.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routes/_components/AccountProfile.html b/routes/_components/AccountProfile.html index 09c8e92..5da765e 100644 --- a/routes/_components/AccountProfile.html +++ b/routes/_components/AccountProfile.html @@ -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')