Hello there,
I am trying to intervene when a user makes a new selection in the igCombo box and there are still pending changes on the page.
I find that I cannot use the "igcomboselectionchanging" event, because this also fires when the user is entering text to find and item (using autocomplete).
so I subscribed to the igcombodropdownclosing event like this to handle all igCombo closing events: $("body").on("igcombodropdownclosing", handleClosing);
this is the handleClosing function:
function handleClosing(evt, ui) {
if (!confirmContinueWithPendingChanges()) {
ui.owner.closeDropDown();
return false;
} else {
pageState.clearPendingChanges();
return true; } }
As you can also see, I use ui.owner.closeDropDown(); explicitly here because when returning false in the dropdownclosing event, the dropdown seems to be broken. I guess this is a bug?! ui.owner.closeDropDown() is NOT triggering the second call of igcombodropdownclosing tho!
So the problem is, everything is working as expected, ONLY, the "igcombodropdownclosing " event is triggered twice!
Can you please investigate this problem and provide me with a solution OR provide me with another way to achieve what I'm trying to do?
Please also ask further if you need more info/code.
Greetings, John
also, I made a basic jsfiddle setup that confirms the double call of "igcombodropdownclosing": http://jsfiddle.net/e3b1gz45/
Hello,
Thank you for reporting this.
I have asked our engineering staff to examine this further. To ensure that it will receive attention, I have logged this behavior in our internal tracking system with a Development ID of 205191. A support case is created on your behalf with number CAS-163575-D6M0X1 , so that you can be notified when the bug is fixed. You can find your active cases under Account - Support Activity in our website. Select your ticket and go to Development Issues tab to view the status of related bugs.
Also you can use dropdownclosed event, as I noticed, this event is fired only once.
http://jsfiddle.net/zdravko/e3b1gz45/1/
Let me know if I may be of further assistance.