{"action":"created","issue":{"url":"https://api.github.com/repos/ingokegel/vaadin-loginform/issues/5","labels_url":"https://api.github.com/repos/ingokegel/vaadin-loginform/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/ingokegel/vaadin-loginform/issues/5/comments","events_url":"https://api.github.com/repos/ingokegel/vaadin-loginform/issues/5/events","html_url":"https://github.com/ingokegel/vaadin-loginform/issues/5","id":67561093,"number":5,"title":"Unwanted click event on custom button click in same layout","user":{"login":"sebgymn","id":5337921,"avatar_url":"https://avatars.githubusercontent.com/u/5337921?v=3","gravatar_id":"","url":"https://api.github.com/users/sebgymn","html_url":"https://github.com/sebgymn","followers_url":"https://api.github.com/users/sebgymn/followers","following_url":"https://api.github.com/users/sebgymn/following{/other_user}","gists_url":"https://api.github.com/users/sebgymn/gists{/gist_id}","starred_url":"https://api.github.com/users/sebgymn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebgymn/subscriptions","organizations_url":"https://api.github.com/users/sebgymn/orgs","repos_url":"https://api.github.com/users/sebgymn/repos","events_url":"https://api.github.com/users/sebgymn/events{/privacy}","received_events_url":"https://api.github.com/users/sebgymn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-10T10:13:48Z","updated_at":"2015-04-15T14:23:59Z","closed_at":"2015-04-15T14:23:59Z","body":"First of all, thanks for this wonderful addon, it works nicely. \r\n\r\nHowever, when I add a custom javascript button to the form and click it, your `loginButton` acts like it was clicked and calls `login(username, password)` method as if there was a click on login button, even if there wasn't. \r\n\r\nI have created a simple demo project for you to understand the issue. Please download and simply run `mvn vaadin:compile jetty:run` on <https://github.com/sebgymn/loginform-test> \r\n\r\nThanks. "},"comment":{"url":"https://api.github.com/repos/ingokegel/vaadin-loginform/issues/comments/93421515","html_url":"https://github.com/ingokegel/vaadin-loginform/issues/5#issuecomment-93421515","issue_url":"https://api.github.com/repos/ingokegel/vaadin-loginform/issues/5","id":93421515,"user":{"login":"sebgymn","id":5337921,"avatar_url":"https://avatars.githubusercontent.com/u/5337921?v=3","gravatar_id":"","url":"https://api.github.com/users/sebgymn","html_url":"https://github.com/sebgymn","followers_url":"https://api.github.com/users/sebgymn/followers","following_url":"https://api.github.com/users/sebgymn/following{/other_user}","gists_url":"https://api.github.com/users/sebgymn/gists{/gist_id}","starred_url":"https://api.github.com/users/sebgymn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebgymn/subscriptions","organizations_url":"https://api.github.com/users/sebgymn/orgs","repos_url":"https://api.github.com/users/sebgymn/repos","events_url":"https://api.github.com/users/sebgymn/events{/privacy}","received_events_url":"https://api.github.com/users/sebgymn/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T14:23:59Z","updated_at":"2015-04-15T14:23:59Z","body":"It does trigger form submission. [It seems that](http://stackoverflow.com/questions/11893573/what-triggers-an-html-form-to-submit) a `<button>` element should be added as `<button type=\"button\">`. "}}