Fix missing TYPE on fucking INPUTS

This commit is contained in:
Maurice Grönwoldt 2020-11-17 22:37:33 +01:00
parent a34201ffc2
commit 8d246aa381
2 changed files with 2 additions and 1 deletions

View file

@ -438,6 +438,7 @@ class FormHandler {
self.errorBox.innerHTML = self.dataset.error; self.errorBox.innerHTML = self.dataset.error;
self.label.setAttribute('for', self.id); self.label.setAttribute('for', self.id);
self.input.id = self.id; self.input.id = self.id;
self.input.type = self.getAttribute('type') || 'text';
self.label.innerHTML = self.dataset.label; self.label.innerHTML = self.dataset.label;
self.input.value = self.innerHTML.trim(); self.input.value = self.innerHTML.trim();
self.innerHTML = ''; self.innerHTML = '';

File diff suppressed because one or more lines are too long