Fix menu toggle when clearing tags

This commit is contained in:
Cory LaViska
2021-01-20 12:09:48 -05:00
parent 63eb5a773f
commit ef65f0e7be
2 changed files with 2 additions and 1 deletions

View File

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

View File

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