ng-change and ejAutocomplete change() event clash, no clear() event

Hello,
I have an html element with input type="text" (textbox) and basically on any kind of change ( click of mouse/keyboard input ), i want to call an api . I checked the documentation which says on "change()" event i can do that. the problem is the API is called twice or even quadruple times. So i used ng-change to call api. It works but then ng-change is not called when I use the reset option via " showResetIcon: true". The reset thing doesn't changes the model value at all. Hence at that time I use change() event to clear the value. Could you please look into it and provide a solution for clear() event as the above method sometimes works and sometimes doesn't works.  



I am using ejAutocomplete in angularjs controller and not in cshtml javascript part, as it never allows me to use both ng-change and change event at the same time. Only ngchange will work if i try to use both.

4 Replies

SS Selvamani Sankarappan Syncfusion Team May 22, 2018 11:34 AM UTC

Hi Shalini, 
 
Thanks for contacting Syncfusion support. 
 
You can use the autocomplete change event for your requirement. We have considered this as a defect “The change event is triggered twice” and logged an issue report for this. This issue fix will be included in our Volume 2 SP1 release. 
 
Regards, 
 
Selvamani S.  



SS Selvamani Sankarappan Syncfusion Team May 22, 2018 11:37 AM UTC

Hi Shalini, 
 
Thanks for contacting Syncfusion support. 
 
You can use the autocomplete change event for your requirement. We have considered this as a defect “The change event is triggered twice” and logged an issue report for this. This issue fix will be included in our Volume 2 SP1, 2018 release. 
 
Regards, 
 
Selvamani S.  



SH Shalini May 23, 2018 06:58 AM UTC

Thank you so much.


SS Selvamani Sankarappan Syncfusion Team May 24, 2018 04:10 AM UTC

Hi Shalini, 
 
Thanks for the update.  
Please let us know if you need any further assistance. 
 
Regards, 
 
Selvamani S. 


Loader.
Up arrow icon