Skip to content

Commit

Permalink
Add support for textarea (multi-line text input)
Browse files Browse the repository at this point in the history
Fix #4
  • Loading branch information
DegrangeM committed Mar 22, 2021
1 parent b84b762 commit d224a51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Forms_Element.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Forms = {
return e.getAttribute('form:current-value') || '';
}
},
"form:textarea": class extends Form_Element {
static getValue(e) {
return e.getAttribute('form:current-value') || '';
}
},
"form:checkbox": class extends Form_Element {
static getName(e) {
return e.getAttribute('form:label') || e.getAttribute('form:name');
Expand Down

0 comments on commit d224a51

Please sign in to comment.