glowing-bear/glowing-bear — pull request #421 by lorenzhs (2014-08-24 17:13:47+00:00)
Title: Prevent triggering ng-focus on input during completion

$apply during another $apply is not possible, and .focus() on the input node triggers the ng-focus on it (which hides the sidebar, if on mobile), so to prevent the exception from being thrown, move the input node focusing out of the $apply with a timeout of 0.