btburnett3/jquery.ui.spinner — Issue #18: focus-loop bug
Author: peer1979
Created: 2011-12-28 15:41:24+00:00
State: open

When i use TAB to navigate through my form, sometimes the spinner starts to steal the focus. When it happens, it becomes a focus-loop. I think it has to do with the setTimeOut.

I solved it by removing some code:

original
---------

.bind('focus' + eventNamespace, function() {
function selectAll() {
self.element.select();
}
msie ? selectAll() : setTimeout(selectAll, 0); // add delay for Chrome, but breaks IE8
...

bugfix
----------
.bind('focus' + eventNamespace, function() {
self.element.select();
....

(Seems to work in Chrome 15)