mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Fix menu toggle when clearing tags
This commit is contained in:
@@ -8,6 +8,7 @@ _During the beta period, these restrictions may be relaxed in the event of a mis
|
||||
|
||||
## Next
|
||||
|
||||
- Fixed a bug in `sl-select` where removing a tag would toggle the dropdown
|
||||
- Updated `sl-menu-item` focus styles
|
||||
|
||||
## 2.0.0-beta.26
|
||||
|
||||
@@ -301,7 +301,7 @@ export class Select {
|
||||
const clearButton = path.find(el => {
|
||||
if (el instanceof HTMLElement) {
|
||||
const element = el as HTMLElement;
|
||||
return element.getAttribute('part') === 'clear-button';
|
||||
return element.classList.contains('tag__clear');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user