AutoComplete On Change event

We are using the Autocomplete widget in a list view. When changed, the on change event triggers multiple times (anywhere from 2-10+)  When using the widget in a data view triggering the same event only occurs once.  Has anyone else experienced an issue like this?  
4 answers

Hi Querin, 

There is event propagation that is triggered when the widget is placed in the list view, the additional line of code:


should take care of this issue (see below): 

             .on("select2:select", function(e) {

                // set the value                
                if( e.params && ){                        
                    var guid =;                        
                    self._contextObj.addReference(self._reference, guid);

                // run the OC microflow if one has been configured.                   
                if( self.onChangeMicroflow ) {
                    self._execMf(self._contextObj.getGuid(), self.onChangeMicroflow);

Would be happy to send over the update mpk, I will be submitting this to the widget developer as well. 


I'm currently dealing with this same issue. Did anyone manage to find a solution or has anyone been able to speak to the developer of this widget yet?



Unfortunately, even after applying your fix the error behavior is still appearing.

Moreover there is an error in the Console: Cannot read property 'stopPropagation' of undefined TypeError: Cannot read property 'stopPropagation' of undefined

Is there any other solution which have been tested to be working fine?

Thanks in advance!

Cheers, Bart


I just ran into this issue again, it seemed at first that the issue was fixed with Aaron's answer but somewhere along the way it broke again. 

After checking the AutoCompelete's github, I saw Eric Tieniber submitted a pull request with a fix! I downloaded the widget from his github and the on change events only triggered once! 

Here is a link to Eric's fix:


and a link to the autocomplete's github:


Thank you Eric!