From 06124e06bf26881fcf429ce116765ba0d28ac87e Mon Sep 17 00:00:00 2001 From: Mikhail Bashkirov Date: Fri, 26 Jul 2019 16:45:49 +0200 Subject: [PATCH] fix(button): prevent unnecessary keydown/keyup handlers --- packages/button/src/LionButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/button/src/LionButton.js b/packages/button/src/LionButton.js index 4f8823c43..46526e5f3 100644 --- a/packages/button/src/LionButton.js +++ b/packages/button/src/LionButton.js @@ -202,7 +202,7 @@ export class LionButton extends DisabledWithTabIndexMixin( } __keydownHandler(e) { - if (!this.__isKeyboardClickEvent(e)) { + if (this.active || !this.__isKeyboardClickEvent(e)) { return; } this.active = true;