Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

sets autoComplete to off in Dropdown #808 #923

Merged
merged 5 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/fragments/Dropdown.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class Dropdown extends Component {
style,
loading_state,
value,
inputProps,
} = this.props;
const {filterOptions} = this.state;
let selectedValue;
Expand Down Expand Up @@ -97,6 +98,7 @@ export default class Dropdown extends Component {
onInputChange={search_value => setProps({search_value})}
backspaceRemoves={clearable}
deleteRemoves={clearable}
inputProps={{...inputProps, autoComplete: 'off'}}
AnnMarieW marked this conversation as resolved.
Show resolved Hide resolved
{...omit(['setProps', 'value'], this.props)}
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Dropdown.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe('Props can be set properly', () => {
{label: 'Disabled', value: 'x', disabled: true},
],
value: 2,
autoComplete: 'off',
optionHeight: 50,
className: 'dd-class',
clearable: true,
Expand Down