Reason:
Autocompleting person contacts works as expected - ksearch_value is available and passed to triggerEvent.
But with group autocomplete, ksearch_value is reset (to null) and triggerEvent call lacks necessary data.
this.ksearch_value_last=q;// Group expansion clears ksearch_value before calling autocomplete_insert trigger, therefore store it in separate variable for later consumption.