Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gwtchosen-142 Tab index is not reset if change handler triggers further ... #143

Closed
wants to merge 1 commit into from

Conversation

cplaetzinger
Copy link
Contributor

Possible fix for #142

…er actions

Call closeField before firing the change event in order to restore tab index settings.
@christiangoudreau
Copy link
Member

Possible? Did you assert that it fixes the problem?

Could you write a test?

@cplaetzinger
Copy link
Contributor Author

It works for me and fixes the issue I have described in #142. I wrote "possible" because I have not much experience working with GWT and CSS. So it would be fine if you or @jDramaix will review the patch.

If will try to find some time to write a test.

@jDramaix
Copy link
Contributor

I disagree with this change and it seems to be a change specific for your need. Tab index should be set back only when the component loses the focus.

If I understand correctly, your issue comes from the fact that the ui is updated and the chosen component doesn't have the focus anymore and tab index is not set back to the original value (so it means that the component doesn't receive the blur event... ) ? How do you update your ui ?

@christiangoudreau
Copy link
Member

@jDramaix

@jDramaix
Copy link
Contributor

jDramaix commented Mar 5, 2015

@christiangoudreau ?

@christiangoudreau
Copy link
Member

What do we do with this? @jDramaix

@jDramaix
Copy link
Contributor

I'm against this change and waiting more info from @cplaetzinger .

@cplaetzinger cplaetzinger changed the title gwtchosen-142 Tab index is not reset if change hanlder triggers further ... gwtchosen-142 Tab index is not reset if change handler triggers further ... Mar 12, 2015
@cplaetzinger
Copy link
Contributor Author

What we do can be summarized as follows:

  • Listen for changes on the ChosenListBox by adding a ChangeHandler
  • Once the handler gets triggered the event is forwarded to our own event handling
  • At the end this leads to a communication with the server part of our GWT application. During event handling/server communication the application displays a spinning activity indicator (like spin.js) using an overlay window.
  • The result received from the server is used to update the ui, e.g add components, remove components, change some attributes on existing components. But it does not build an entire new windows. Thus the original components still exists.

@olafleur
Copy link
Member

Last commit was more than 6 months ago. Closing. Feel free to reopen a pull request as needed.

@olafleur olafleur closed this Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants