Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on clearInput #489

Open
cornermac opened this issue May 2, 2017 · 0 comments
Open

error on clearInput #489

cornermac opened this issue May 2, 2017 · 0 comments

Comments

@cornermac
Copy link

I have a text box using angucomplete-alt to pick a worker name. After the user saves the info, I clear the text box. Each time I get this error...
TypeError: Unable to get property 'originalObject' of undefined or null reference
at $scope.nameSelected (xxxPDC_Worker.php:304:3)
at callOrAssign (xxx/Angular/angucomplete-alt.js:167:11)
at Anonymous function (xxx/Angular/angucomplete-alt.js:124:11)
at Scope.prototype.$broadcast (xxx/Angular/angular.js:18487:15)
at $scope.saveNewWorker (xxxPDC_Worker.php:296:3)
at fn (Function code:2:153)
at callback (xxx/Angular/angular.js:26994:17)
at Scope.prototype.$eval (xxxAngular/angular.js:18161:9)
at Scope.prototype.$apply (xxx/Angular/angular.js:18261:13)
at Anonymous function (xxx/Angular/angular.js:26999:17)

The entry box on the page looks like this...

the end of the save function has this line to clear the entry box...
$scope.$broadcast('angucomplete-alt:clearInput','workerName');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant