From 68339448bdcc86dd6478f0f5e78c0b93a75e2110 Mon Sep 17 00:00:00 2001 From: Ben Delarre Date: Thu, 30 Jan 2020 15:28:42 -0800 Subject: [PATCH] fix(shared): fixes search input - fixes #463 --- packages/shared/src/focusable.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/focusable.ts b/packages/shared/src/focusable.ts index a723e706df..a7a9db804a 100644 --- a/packages/shared/src/focusable.ts +++ b/packages/shared/src/focusable.ts @@ -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) {