mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
ignore disabled controls
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user