Skip to content

Commit

Permalink
update playground to use multiple prop
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Apr 22, 2022
1 parent d7f9979 commit c4fa842
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/playground-react/pages/combobox/multi-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function MultiPeopleList() {
console.log([...new FormData(e.currentTarget).entries()])
}}
>
<Combobox value={activePersons} onChange={setActivePersons} name="people">
<Combobox value={activePersons} onChange={setActivePersons} name="people" multiple>
<Combobox.Label className="block text-sm font-medium leading-5 text-gray-700">
Assigned to
</Combobox.Label>
Expand Down
2 changes: 1 addition & 1 deletion packages/playground-react/pages/listbox/multi-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function MultiPeopleList() {
console.log([...new FormData(e.currentTarget).entries()])
}}
>
<Listbox value={activePersons} onChange={setActivePersons} name="people">
<Listbox value={activePersons} onChange={setActivePersons} name="people" multiple>
<Listbox.Label className="block text-sm font-medium leading-5 text-gray-700">
Assigned to
</Listbox.Label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="w-full max-w-4xl">
<div class="space-y-1">
<form @submit="onSubmit">
<Combobox v-model="activePersons" name="people">
<Combobox v-model="activePersons" name="people" multiple>
<ComboboxLabel class="block text-sm font-medium leading-5 text-gray-700">
Assigned to
</ComboboxLabel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="w-full max-w-4xl">
<div class="space-y-1">
<form @submit="onSubmit">
<Listbox v-model="activePersons" name="people">
<Listbox v-model="activePersons" name="people" multiple>
<ListboxLabel class="block text-sm font-medium leading-5 text-gray-700">
Assigned to
</ListboxLabel>
Expand Down

0 comments on commit c4fa842

Please sign in to comment.