Skip to content

Commit

Permalink
feat(SearchField, TextField): support inputMode prop (#1249)
Browse files Browse the repository at this point in the history
Motivation: #1194
Issue: [Link](https://jira.tid.es/browse/WEB-2046)
  • Loading branch information
marcoskolodny authored Sep 26, 2024
1 parent 3b3d85f commit fe31eca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/search-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import type {CommonFormFieldProps} from './text-field-base';
export interface SearchFieldProps extends CommonFormFieldProps {
onChangeValue?: (value: string, rawValue: string) => void;
getSuggestions?: (value: string) => ReadonlyArray<string>;
inputMode?: React.HTMLAttributes<HTMLInputElement>['inputMode'];
}

const SearchField = React.forwardRef<any, SearchFieldProps>(
Expand Down
1 change: 1 addition & 0 deletions src/text-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface TextFieldProps extends CommonFormFieldProps<HTMLInputElement |
endIcon?: React.ReactNode;
getSuggestions?: (value: string) => ReadonlyArray<string>;
role?: string;
inputMode?: React.HTMLAttributes<HTMLInputElement>['inputMode'];
}

const TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(
Expand Down

0 comments on commit fe31eca

Please sign in to comment.