Skip to content

Commit

Permalink
add name attribute to form fields, fixes #371
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Apr 10, 2024
1 parent 899a47c commit adac90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ export const layoutTemplate = (options, dom) => `<div class='${options.classes.t
options.paging && options.perPageSelect ?
`<div class='${options.classes.dropdown}'>
<label>
<select class='${options.classes.selector}'></select> ${options.labels.perPage}
<select class='${options.classes.selector}' name="per-page"></select> ${options.labels.perPage}
</label>
</div>` :
""
}
${
options.searchable ?
`<div class='${options.classes.search}'>
<input class='${options.classes.input}' placeholder='${options.labels.placeholder}' type='search' title='${options.labels.searchTitle}'${dom.id ? ` aria-controls="${dom.id}"` : ""}>
<input class='${options.classes.input}' placeholder='${options.labels.placeholder}' type='search' name="search" title='${options.labels.searchTitle}'${dom.id ? ` aria-controls="${dom.id}"` : ""}>
</div>` :
""
}
Expand Down

0 comments on commit adac90f

Please sign in to comment.