I have a very simple inputbox:
$.MessageBox({
input: 'default value',
message: "Digite o valor da pesquisa"
}).done(function (data) {
//console.log(data)
//if click the button OK with the mouse, everything runs ok.
//but if press enter while typing something in the textbox, causes error
});
The 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.
The problem doesn't occur if i click in the OK button manually.
Details of error:
Chrome 53
MessageBox 2.0
The error is in line 423 of messagebox.js
instance.deferred.resolve(inputValues, event.data.name);
where event.data is undefined when pressing enter.