I have a ComboBox. I have written a function for its change event, on a particular condition I need to clear the ComboBox selection and its value.
<ComboBox change="onChange"/>onChange:function(oEvent){
if(someCondition is true){
oEvent.getSo...
We have below methods for combo box comboBox.setSelectedKey()
conboBox.setSelectedItem()
But we don't have method you commentedcomboBox.setSelectedKeys()
combobox.setSelectedItems()And above both mentioned method triggers change event
My issue is on change event i need to clear the value and selection of combo box. Your solution works but problem is it will again trigger change event, I don't want it to trigger again.Even if setValue(""), when triggered second time, value wont be ...
Yes, I tried. It triggers change event again and that is again the issue.So I am trying to find an event for ComboBox popup close. This will be the good solution. Any such event you know for ComboBox ?