Skip to content

Commit

Permalink
ComboBox: selectedItem setter sets pendingSelectedIndex like the sele…
Browse files Browse the repository at this point in the history
…ctedIndex setter
  • Loading branch information
joshtynjala committed Mar 29, 2024
1 parent a45b344 commit f3e0269
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/feathers/controls/ComboBox.hx
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ class ComboBox extends FeathersControl implements IIndexSelector implements IDat
if (this._selectedItem == value && this._selectedIndex == index) {
return this._selectedItem;
}
if (this.open) {
this.pendingSelectedIndex = index;
}
this._selectedIndex = index;
this._selectedItem = value;
this._customSelectedItem = null;
Expand Down

0 comments on commit f3e0269

Please sign in to comment.