I have a TsComboBox set as a drop down list.
When I clear the items collection (TsComboBox.Items.Clear) the existing selection still shows.
If queried ItemIndex returns -1.
If I mouse over then it updates to show no selection. Other things may also update it so sometimes it looks like it is working.
The issue is in TsCustomComboBox.ItemsCleared
It is setting FItemIndex to -1 which sets the internal selection state but doesn’t update the UI state.
It should instead set ItemIndex which also updates the UI state.
TsComboBox.Clear sets ItemIndex and then calls Items.Clear – so it works as expected.
This is present in 16.24.