views:

46

answers:

1

My QA specialist is getting this following bug:

Opening & closing the Country dropdown along with other dropdowns: Toggle opening Country & Phone Type drops. Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.

Is this an issue with the JavaScript. And if so I have debugged it and can't pinpoint the issue.

+1  A: 

Yes, this error will appear in IE when you try to call the .focus() method on an element that can't be focused. Other browsers typically silently ignore it.

Without knowing what code you're working with, no-one can help you. You will have to search through your scripts to see where that might happen.

In the worst case, if you really can't work it out, adding a try { ... } catch(e) {} block around each call to focus() would certainly stop the error appearing. Not really a good fix though.

bobince