Hi,Im using an igCombo control with the nullText and enableClearButton options.When the clear button is used while the igCombo does not have focus, the selection is cleared, but the null text does not appear.Example: http://jsfiddle.net/05qckbqj/My current workaround is to explicitly set the selectedIndex to -1 in the selectionChanged event if no items are selected.http://jsfiddle.net/axxc6zLz/Is there a better way to do this?
Hello Robin,
When you use the clear button the igCombo HAS focus. At the same time, the nullText appears when the combo is out of focus - please refer to http://help.infragistics.com/jQuery/2014.2/ui.igcombo#options:nullText where this is documented.
Your sample would behave exactly the same way if you do not handle the selectionChanged event, because when you use the clear button this event is not fired.
This is expected behavior. Please let me know if you have further questions on the matter.
Best Regards,Hristo AnastasovDeveloper Support EngineerInfragistics, Inc.
Hi,
Thank you for the quick response.
It seems as it this is a browser specific problem. In IE it works as you describe - when clicking the clear button the igCombo control gets focus and the drop down list opens.
In Firefox and Chrome however the igCombo control does not get focus (and stays grey) when clicking the clear button.