-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
Milestone
Description
Hello :) Would be really awesome, if I could access scope from within onClickBefore function. I would like to call scope.hideLayout();
The reason that I am asking for this is that I am cloning the way Facebook search works and I need typeahead to close the dropdown when I click on a result.
Easy fix
Replace:
scope.helper.executeCallback(scope.options.callback.onClickBefore, [scope.node, this, item, e]);
with this:
scope.helper.executeCallback(scope.options.callback.onClickBefore, [scope.node, this, item, e, scope]);