Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Keyboard selection gives console error with Angular v1.3.0-beta.16 #119

Closed
WhatFreshHellIsThis opened this issue Jul 23, 2014 · 5 comments
Closed

Comments

@WhatFreshHellIsThis
Copy link

While it appears that it does work and allows selection anyway, this nasty error pops up in the console every time you use the keyboard to make a selection when you hit enter or tab off the control. (no error using the mouse)

Error: [$rootScope:inprog] $apply already in progress
http://errors.angularjs.org/1.3.0-beta.16/$rootScope/inprog?p0=%24apply
at http://localhost:3000/vendor/angular.js:78:12
at beginPhase (http://localhost:3000/vendor/angular.js:13112:15)
at Scope.$apply (http://localhost:3000/vendor/angular.js:12894:11)
at HTMLInputElement. (http://localhost:3000/vendor/angular.js:18900:17)
at HTMLInputElement.n.event.dispatch (http://localhost:3000/vendor/jquery-2.1.1.min.js:3:6404)
at HTMLInputElement.n.event.add.r.handle (http://localhost:3000/vendor/jquery-2.1.1.min.js:3:3179)
at ctrl.close (http://localhost:3000/common/directives/select.js:259:26)
at ctrl.select (http://localhost:3000/common/directives/select.js:250:12)
at _onKeydown (http://localhost:3000/common/directives/select.js:282:16)
at http://localhost:3000/common/directives/select.js:301:27

@ericclemmons
Copy link

Are you using $sce? If so, then this could be the same problem with #124

@WhatFreshHellIsThis
Copy link
Author

Yes, I'm using angular-sanitize. Not directly on that page or controller but it is loaded for another page.

@dimirc
Copy link
Contributor

dimirc commented Aug 2, 2014

Lets keep this at #124

@dimirc dimirc closed this as completed Aug 2, 2014
@dimirc
Copy link
Contributor

dimirc commented Aug 2, 2014

Check #137

@WhatFreshHellIsThis
Copy link
Author

Yup, looks like the same problem exactly, thanks guys!

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

No branches or pull requests

3 participants