You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce:
I have no search history in the dropdown. I focus the input and press enter. I got this error from the console.
Uncaught TypeError: Cannot read property 'originalObject' of undefined
at Scope.angular.module.directive.scope.selectResult (angucomplete-alt.js:693)
at HTMLInputElement.keydownHandler (angucomplete-alt.js:358)
at HTMLInputElement.dispatch (jquery.js:4737)
at HTMLInputElement.elemData.handle (jquery.js:4549)
at HTMLInputElement.wrapped (raven.js:363)
I believe it's because scope.currentIndex is null and it goes into this condition.
if (scope.currentIndex >= 0 && scope.currentIndex < scope.results.length) {
event.preventDefault();
scope.selectResult(scope.results[scope.currentIndex]);
}
The text was updated successfully, but these errors were encountered:
To reproduce:
I have no search history in the dropdown. I focus the input and press enter. I got this error from the console.
Uncaught TypeError: Cannot read property 'originalObject' of undefined
at Scope.angular.module.directive.scope.selectResult (angucomplete-alt.js:693)
at HTMLInputElement.keydownHandler (angucomplete-alt.js:358)
at HTMLInputElement.dispatch (jquery.js:4737)
at HTMLInputElement.elemData.handle (jquery.js:4549)
at HTMLInputElement.wrapped (raven.js:363)
I believe it's because
scope.currentIndex
is null and it goes into this condition.if (scope.currentIndex >= 0 && scope.currentIndex < scope.results.length) {
event.preventDefault();
scope.selectResult(scope.results[scope.currentIndex]);
}
The text was updated successfully, but these errors were encountered: