Skip to content

Commit

Permalink
Merge pull request #658 from Shallowmallow/DropdownChanges
Browse files Browse the repository at this point in the history
Dropdown dispatches changes when something has changed
  • Loading branch information
ianharrigan authored Dec 5, 2024
2 parents c120c05 + 5b1f5a4 commit 49ab4f4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions haxe/ui/components/DropDown.hx
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,14 @@ private class ListDropDownHandler extends DropDownHandler {
} else {
text = Std.string(data);
}
if (_dropdown.text != text) {
dispatchChanged = true;
}
_dropdown.text = text;
} else {
if (itemRenderer.data != data) {
dispatchChanged = true;
}
itemRenderer.data = data;
}
}
Expand Down

0 comments on commit 49ab4f4

Please sign in to comment.