SteveSanderson/knockout — Issue #352: 'hasfocus' binding causes focus loss
Author: mbest
Created: 2012-02-29 03:38:01+00:00
State: open

http://jsfiddle.net/mbest/NZ6sY/

Compare two input elements, *A* with `hasfocus` and *B* without.

If *A* has focus and you switch to another tab/window and back, it not longer has focus.
If *B* has focus and you switch to another tab/window and back, it still has focus.

The 'hasfocus' binding should not cause an element to lose focus when you switch to another window and back.