Skip to content

Commit

Permalink
fixup! Add project dataset select format
Browse files Browse the repository at this point in the history
  • Loading branch information
gbp committed Oct 2, 2024
1 parent c2f1548 commit 4fecc79
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ export default class extends Controller {
if (!newValue) return;

const form = this.element.closest("form");
const hiddenInput = document.createElement("input");

hiddenInput.type = "hidden";
hiddenInput.name = this.nameValue;
hiddenInput.value = newValue;
form.appendChild(hiddenInput);

streamUpdate(form);
streamUpdate(form, { [this.nameValue]: newValue });
}

removeOption(event) {
Expand Down

0 comments on commit 4fecc79

Please sign in to comment.