{"action":"created","issue":{"url":"https://api.github.com/repos/gasparesganga/jquery-message-box/issues/2","repository_url":"https://api.github.com/repos/gasparesganga/jquery-message-box","labels_url":"https://api.github.com/repos/gasparesganga/jquery-message-box/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gasparesganga/jquery-message-box/issues/2/comments","events_url":"https://api.github.com/repos/gasparesganga/jquery-message-box/issues/2/events","html_url":"https://github.com/gasparesganga/jquery-message-box/issues/2","id":183160642,"number":2,"title":"Error when press enter on a simple input messagebox","user":{"login":"jpolvora","id":955554,"avatar_url":"https://avatars.githubusercontent.com/u/955554?v=3","gravatar_id":"","url":"https://api.github.com/users/jpolvora","html_url":"https://github.com/jpolvora","followers_url":"https://api.github.com/users/jpolvora/followers","following_url":"https://api.github.com/users/jpolvora/following{/other_user}","gists_url":"https://api.github.com/users/jpolvora/gists{/gist_id}","starred_url":"https://api.github.com/users/jpolvora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpolvora/subscriptions","organizations_url":"https://api.github.com/users/jpolvora/orgs","repos_url":"https://api.github.com/users/jpolvora/repos","events_url":"https://api.github.com/users/jpolvora/events{/privacy}","received_events_url":"https://api.github.com/users/jpolvora/received_events","type":"User","site_admin":false},"labels":[{"id":463967867,"url":"https://api.github.com/repos/gasparesganga/jquery-message-box/labels/can't%20reproduce","name":"can't reproduce","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-14T22:06:05Z","updated_at":"2016-11-18T10:03:34Z","closed_at":"2016-11-18T10:03:34Z","body":"I have a very simple inputbox:\n\n``` js\n    $.MessageBox({\n        input: 'default value',\n        message: \"Digite o valor da pesquisa\"\n    }).done(function (data) {\n        //console.log(data)\n        //if click the button OK with the mouse, everything runs ok.\n        //but if press enter while typing something in the textbox, causes error\n    });\n```\n\nThe messagebox shows normally, but when I type some text and press enter, the messagebox closes as expected but the code fails and stops javascript execution.\n\nThe problem doesn't occur if i click in the OK button manually.\nDetails of error:\n\nChrome 53\nMessageBox 2.0\n\nThe error is in line [423](https://github.com/gasparesganga/jquery-message-box/blob/master/src/messagebox.js#L423) of messagebox.js\n\n``` js\ninstance.deferred.resolve(inputValues, event.data.name);\n```\n\nwhere event.data is undefined when pressing enter.\n"},"comment":{"url":"https://api.github.com/repos/gasparesganga/jquery-message-box/issues/comments/261493955","html_url":"https://github.com/gasparesganga/jquery-message-box/issues/2#issuecomment-261493955","issue_url":"https://api.github.com/repos/gasparesganga/jquery-message-box/issues/2","id":261493955,"user":{"login":"gasparesganga","id":8983200,"avatar_url":"https://avatars.githubusercontent.com/u/8983200?v=3","gravatar_id":"","url":"https://api.github.com/users/gasparesganga","html_url":"https://github.com/gasparesganga","followers_url":"https://api.github.com/users/gasparesganga/followers","following_url":"https://api.github.com/users/gasparesganga/following{/other_user}","gists_url":"https://api.github.com/users/gasparesganga/gists{/gist_id}","starred_url":"https://api.github.com/users/gasparesganga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasparesganga/subscriptions","organizations_url":"https://api.github.com/users/gasparesganga/orgs","repos_url":"https://api.github.com/users/gasparesganga/repos","events_url":"https://api.github.com/users/gasparesganga/events{/privacy}","received_events_url":"https://api.github.com/users/gasparesganga/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T10:03:34Z","updated_at":"2016-11-18T10:03:34Z","body":"Since I cannot reproduce the issue, you haven't answered back in a month and the issue doesn't seem to exist at all, I am closing this."}}
{"actor":{"display_login":"gasparesganga"}}