Skip to content

Commit

Permalink
wip: Test inputmode="none" on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Apr 29, 2024
1 parent f63e0c5 commit 520b6c4
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Typography from "@mui/material/Typography";
import capitalize from "lodash/capitalize";
import React, { forwardRef, PropsWithChildren, useMemo, useState } from "react";
import { borderedFocusStyle } from "theme";
import Checkbox from "ui/shared/Checkbox";

import { FileUploadSlot } from "../FileUpload/Public";
import {
Expand All @@ -28,7 +29,6 @@ import {
removeSlots,
UserFile,
} from "./model";
import Checkbox from "ui/shared/Checkbox";

interface SelectMultipleProps {
uploadedFile: FileUploadSlot;
Expand Down Expand Up @@ -108,6 +108,7 @@ const renderInput: AutocompleteProps<
InputProps={{
...params.InputProps,
notched: false,
inputMode: "none",
}}
label="What does this file show?"
/>
Expand All @@ -123,7 +124,12 @@ const renderGroup: AutocompleteProps<
false,
"div"
>["renderGroup"] = ({ group, key, children }) => (
<List key={`group-${key}`} role="group" sx={{ paddingY: 0 }} aria-labelledby={`${group}-label`}>
<List
key={`group-${key}`}
role="group"
sx={{ paddingY: 0 }}
aria-labelledby={`${group}-label`}
>
<ListSubheader
id={`${group}-label`}
role="presentation"
Expand Down Expand Up @@ -156,7 +162,7 @@ const renderOption: AutocompleteProps<
data-testid="select-checkbox"
checked={selected}
inputProps={{
"aria-label": option.name
"aria-label": option.name,
}}
/>
<ListItemText sx={{ ml: 2 }}>{option.name}</ListItemText>
Expand Down

0 comments on commit 520b6c4

Please sign in to comment.