fixed the issue of not being able to hit enter key to submit a form

This commit is contained in:
huangjx
2021-09-21 23:24:48 +08:00
parent 3032d4f859
commit 9a1d947589
5 changed files with 20 additions and 19 deletions

View File

@@ -88,7 +88,7 @@ class inputBox {
}
_createButton() {
let button = document.createElement('button');
button.setAttribute('type', this.btnName);
button.setAttribute('type', 'submit');
button.setAttribute('id', 'form-input-button');
//buttonInput.setAttribute('value', t('ncdownloader', helper.ucfirst(btnName)));
let text = document.createTextNode(t('ncdownloader', helper.ucfirst(this.btnName)));