From f3e0269717006726c8a472367cb845877748968f Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Fri, 29 Mar 2024 08:36:44 -0700 Subject: [PATCH] ComboBox: selectedItem setter sets pendingSelectedIndex like the selectedIndex setter --- src/feathers/controls/ComboBox.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/feathers/controls/ComboBox.hx b/src/feathers/controls/ComboBox.hx index 99ff6559..8679107a 100644 --- a/src/feathers/controls/ComboBox.hx +++ b/src/feathers/controls/ComboBox.hx @@ -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;