From d9252fe7556f7b7f3dcad6878b88fbfa8fc9aa59 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 28 Dec 2022 17:18:48 -0500 Subject: [PATCH] ignore disabled controls --- src/components/select/select.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/select/select.ts b/src/components/select/select.ts index f8055a945..26b5522b0 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -362,8 +362,8 @@ export default class SlSelect extends ShoelaceElement implements ShoelaceFormCon const path = event.composedPath(); const isIconButton = path.some(el => el instanceof Element && el.tagName.toLowerCase() === 'sl-icon-button'); - // Ignore clicks on tags (remove buttons) - if (isIconButton) { + // Ignore disabled controls and clicks on tags (remove buttons) + if (this.disabled || isIconButton) { return; }