Skip to content

Commit 06124e0

Browse files
author
Mikhail Bashkirov
committed
fix(button): prevent unnecessary keydown/keyup handlers
1 parent f3303ae commit 06124e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/button/src/LionButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class LionButton extends DisabledWithTabIndexMixin(
202202
}
203203

204204
__keydownHandler(e) {
205-
if (!this.__isKeyboardClickEvent(e)) {
205+
if (this.active || !this.__isKeyboardClickEvent(e)) {
206206
return;
207207
}
208208
this.active = true;

0 commit comments

Comments
 (0)