With a little side of applesauce...

Tuesday, October 1, 2013

Click doesn't give element focus in Chrome?

Click doesn't give element focus in #chrome? Seems to be this issue: https://bugs.webkit.org/show_bug.cgi?id=22261 . Here is a fix:
// fix webkit bug #22261, which doesn't give   
// radio buttons focus when clicked with mouse
$('input').click(function() {
   $(this).focus();
});

No comments: