Skip to content

Commit

Permalink
fix(shared): fixes search input - fixes #463
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamind committed Jan 31, 2020
1 parent 1b17c4c commit 6833944
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/shared/src/focusable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export class Focusable extends FocusVisiblePolyfillMixin(LitElement) {

protected manageFocusIn(): void {
this.addEventListener('mousedown', (event) => {
event.preventDefault();
if (event.composedPath()[0] !== this.focusElement) {
event.preventDefault();
}
});
this.addEventListener('focusin', (event) => {
if (event.composedPath()[0] === this) {
Expand Down

0 comments on commit 6833944

Please sign in to comment.