fix(button): prevent unnecessary keydown/keyup handlers
This commit is contained in:
parent
f3303ae014
commit
06124e06bf
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ export class LionButton extends DisabledWithTabIndexMixin(
|
||||||
}
|
}
|
||||||
|
|
||||||
__keydownHandler(e) {
|
__keydownHandler(e) {
|
||||||
if (!this.__isKeyboardClickEvent(e)) {
|
if (this.active || !this.__isKeyboardClickEvent(e)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.active = true;
|
this.active = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue