Skip to content

Commit

Permalink
docs: hide required checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jun 23, 2024
1 parent aa95834 commit 120d78d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions website/src/pages/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,18 +297,20 @@ export default function Playground() {
<option value="range">range</option>
</select>
</label>
<label>
<input
type="checkbox"
name="required"
onChange={(e) => {
setSelected(undefined);
// @ts-expect-error abc
setProps({ ...props, required: e.target.checked });
}}
/>
Required
</label>
{props.mode && (
<label>
<input
type="checkbox"
name="required"
onChange={(e) => {
setSelected(undefined);
// @ts-expect-error abc
setProps({ ...props, required: e.target.checked });
}}
/>
Required
</label>
)}
{props.mode === "range" || props.mode === "multiple" ? (
<label>
Min Selection:
Expand Down

0 comments on commit 120d78d

Please sign in to comment.