Skip to content

Commit

Permalink
fix(listbox-button): added reset for active descendant makeup clean
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed May 29, 2024
1 parent cd43e56 commit 81f420b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-flies-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/ebayui-core": patch
---

listbox-button: added reset for active descendant when there is a state change
1 change: 1 addition & 0 deletions src/components/ebay-listbox/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class Listbox extends Marko.Component<Input, State> {

_cleanupMakeup() {
if (this._activeDescendant) {
this._activeDescendant.reset();
this._activeDescendant.destroy();
this._activeDescendant = undefined;
}
Expand Down

0 comments on commit 81f420b

Please sign in to comment.