Monday, May 31, 2010

ClickHandler not called on second click

I have a button with a ClickHandler. When I move the mouse over the
button and click the button, the ClickHandler is called. When I do no
move the mouse away from the button, the ClickHandler is not called on
any subsequent clicks. I have to move the mouse away from the button
and back. Then the ClickHandler is called when I click again.

To investigate, I have added a MouseDownHandler and a MouseUpHandler.
These are called on subsequent clicks, only the ClickHandler is not
As the focus stays on the button, I have tried hitting the enter key.
This triggers calling the ClickHandler.

I 've tried adding a DeferredCommand to the ClickHandler with a
variaty of actions(remove focus, remove focus and set focus again),
but this does not change anything.

- GWT 2.0.3
- Vista
- Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

There are several posts in this forum that describe a similar
behaviour (e.g.
but none have a solution.

Any idea how to solve this?

Thanks in advance,


You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment