ignore disabled controls

pull/1090/head
Cory LaViska 2022-12-28 17:18:48 -05:00
rodzic c5555ab5fe
commit d9252fe755
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;
}