Skip to content

Commit

Permalink
fix(input): remove autocomplete prop
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaKashuba committed May 26, 2023
1 parent ef6104b commit ff1d893
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/components/atoms/InputText/InputText.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Use `<TextInput />` to render a native HTML `<input />`.

For a richer input see [`<TextField />`](/#/Components/Molecules/TextField).

If you are using autocomplete, check out suggested values https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete.

### Example

- Default
Expand Down
5 changes: 0 additions & 5 deletions src/components/molecules/TextField/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ import { FieldProps, InputProps } from '../../types';

export interface TextFieldProps extends FieldProps, InputProps {
prefix?: string;

/**
* Suggested values for autocomplete: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
*/
autoComplete?: string;
}

export interface PrefixProps {
Expand Down
5 changes: 0 additions & 5 deletions src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ export interface InputProps extends InputStatus, InputHTMLAttributes<HTMLInputEl
fontWeight?: keyof AppTheme['typography']['weights'];

fontSize?: keyof AppTheme['typography']['text']['sizes'];

/**
* Suggested values for autocomplete: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete
*/
autoComplete?: string;
}

export interface SelectProps extends InputStatus, InputHTMLAttributes<HTMLSelectElement> {
Expand Down

0 comments on commit ff1d893

Please sign in to comment.