This repository has been archived by the owner on Apr 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 922
Pressing space in textbox submits form. #72
Labels
Comments
Could you please tell us more details, where is this dialog or how do you create it? |
|
|
Indeed there is a bug in focus handling Form = app.Form
f = new Form({
colwidth: '33%',
edge: "0 0 0 0",
form: [{
name: "summary",
title: 'Summary',
type: "textbox",
}, {
name: "value",
title: 'Hours (eg: 3.5 or 3:30)',
type: "textbox",
defaultValue: 0.5,
width: 70
}]
})
Dialog = app.Dialog
d = new Dialog('Log Time', [], {
title: "Log Time for Project:",
modal: true,
allowClose: true,
elements: [{
type: "button",
id: "ok",
color: "green",
caption: "OK",
"default": true,
onclick: function() {
debugger
}
}]
})
d.on('draw', function(e) {
f.attachTo(e.html);
});
d.show() |
Thanks for confirming. Will just use form submit button for now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I cannot input a space into a textbox in a form that is within a dialog. It triggers the onclick event of dialog button.
The text was updated successfully, but these errors were encountered: