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

If you submit the form with onSelect(), the valueField isn't updated already. #33

Open
RiZKiT opened this issue Nov 13, 2013 · 0 comments

Comments

@RiZKiT
Copy link
Contributor

RiZKiT commented Nov 13, 2013

If you want to submit the form with onSelect() and need a synced value field, you have the problem that the value field isn't updated already. It's a problem of the event handling of fireEvent('select'), because the value field is synced with that event, too.

A pragmatic solution is to slightly delay the form submit, like formElement.submit.delay(10, formElement), a bit better is it to periodically check the valueElement value with the provided data.value.

A perfect solution might be extending the plugin with another event, but that might be more work then one want to afford.

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

No branches or pull requests

1 participant