Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
fix(select-pure): fix multiple renderred hidden inputs
Browse files Browse the repository at this point in the history
re #41
  • Loading branch information
dudyn5ky1 committed Jul 1, 2021
1 parent 78f55ae commit c0d995d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select-pure/src/components/Select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ export class SelectPure extends LitElement {
@boundMethod
private appendHiddenInputToClosestForm() {
this.form = this.closest("form");
if (!this.form) {
if (!this.form || this.hiddenInput) {
return;
}
this.hiddenInput = document.createElement("input");
Expand Down

0 comments on commit c0d995d

Please sign in to comment.