fix bug with custom tags

This commit is contained in:
konnorrogers
2025-11-17 18:43:07 -05:00
parent 0b1308fc90
commit de1f34d5ce
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ Components with the <wa-badge variant="warning">Experimental</wa-badge> badge sh
- Fixed a bug in `<wa-slider>` that caused some touch devices to end up with the incorrect value [issue:1703]
- Fixed a bug in `<wa-card>` that prevented some slots from being detected correctly [discuss:1450]
- Fixed a bug in `<wa-select>` that caused options not to get cleared correctly. [pr:1782]
- Fixed a bug in `<wa-select>` that caused custom tags to not to get cleared correctly. [pr:1782]
- Improved performance of `<wa-icon>` so initial rendering occurs faster, especially with multiple icons on the page [issue:1729]
## 3.0.0

View File

@@ -613,7 +613,7 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement {
// If no direct option was provided, find the option from the event path
if (!option) {
const tagElement = (event.target as Element).closest('wa-tag[part~=tag]');
const tagElement = (event.target as Element).closest('wa-tag[with-remove]');
if (tagElement) {
// Find the index of this tag among all tags