TsComboBox still shows selection after Items is cleared.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #70922
    Alan Montgomery
    Participant

    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.

    #70967
    Support
    Keymaster

    Hello and sorry for a long time without answer. Thank you for the message, this information will be used in the next release.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.