Skip to content

Commit

Permalink
feat(ld-select): use hidden input on web component for standard form …
Browse files Browse the repository at this point in the history
…submissions
  • Loading branch information
borisdiakur committed Jul 14, 2021
1 parent 35e849e commit 17a673a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/liquid/components/ld-select/ld-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,15 @@ export class LdSelect {

return (
<Host class={cl} disabled={this.disabled}>
{this.name
? this.selected.map((selected) => (
<input
type="hidden"
name={this.name}
value={selected.value}
></input>
))
: ''}
<div
class="ld-select__select"
ref={(el) => (this.selectRef = el as HTMLElement)}
Expand Down

0 comments on commit 17a673a

Please sign in to comment.