Bug in TCustomComboBox.RealSetText
- Lazarus/FPC Version: 2.3 (65372)
- Operating System: Windows 10 Home 64-bit
- CPU / Bitness: 64
In method TCustomComboBox.RealSetText do not set an item index for an empty string.
What did you expect
An empty string is also a value that may or may not be in the list. If it is not there, ItemIndex should be -1.
Steps to reproduce
I am attaching an example: CustomComboBoxTest.zip
The Clear method also doesn't work as expected. It does not reset the ItemIndex to -1.