Setting focus on a Anchor button

752 views
Skip to first unread message

Qrunk

unread,
Jun 5, 2012, 7:35:28 AM6/5/12
to google-we...@googlegroups.com
Hi

Can some one help me understand why we can't set focus on Anchor button though its a focus-able widget.
We are using Anchor button as a Composite widget wrapped around a FlowPanel. We are unable to setFocus(true) on Anchor button.

A sample code on this would be nice. :)

Thanks.

Joseph Lust

unread,
Jun 5, 2012, 8:01:37 PM6/5/12
to google-we...@googlegroups.com
Qrunk,

Anchor uses AnchorElement to set its focus, firing the .focus() method. The anchor tag has a focus event which I was able to observer working in Chrome v19 just using the dev console.

What exactly are you expecting to see and what browser you're using it on? This issue might be that your browser has not implemented the focus event on the anchor element as this is not quite yet a standard behavior.


Sincerely,
Joseph
Reply all
Reply to author
Forward
0 new messages