ArcBees / gwtquery

A jQuery clone for GWT, and much more.
MIT License
85 stars 38 forks source link

$(form).submit() doesn't work in 1.4.4-SNAPSHOT #363

Closed jclariviere closed 8 years ago

jclariviere commented 8 years ago
<form action="javascript:;" ui:field="form">
    <input/>
    <button type="submit">Submit</button>
</form>
@UiField
FormElement form;
$(form).submit(new Function() {
    @Override
    public void f() {
        GQuery.console.log("Hello");
    }
});

In 1.4.4-SNAPSHOT, submitting the form (either pressing enter in the input or clicking on the button) has no effect (nothing is shown in the console). It works with 1.4.3.

Changing $(form).submit() to $(submitButton).click() does show console output.