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

Commit

Permalink
Merge pull request #923 from AnnMarieW/disable-autocomplet-dropdown-#808
Browse files Browse the repository at this point in the history
sets autoComplete to off in Dropdown #808
  • Loading branch information
alexcjohnson authored Feb 1, 2021
2 parents 6aa850d + 4fc87cc commit d323542
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## UNRELEASED

### Changed
- [#923](https://github.com/plotly/dash-core-components/pull/923)
Set autoComplete to off in `dcc.Dropdown`. This fixes [#808](https://github.com/plotly/dash-core-components/issues/808)

## [1.15.0] - 2021-01-19
### Fixed
- [#905](https://github.com/plotly/dash-core-components/pull/905) Make sure the `figure` prop of `dcc.Graph` receives updates from user interactions in the graph, by using the same `layout` object as provided in the prop rather than cloning it. Fixes [#879](https://github.com/plotly/dash-core-components/issues/879).
Expand Down
1 change: 1 addition & 0 deletions src/fragments/Dropdown.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export default class Dropdown extends Component {
onInputChange={search_value => setProps({search_value})}
backspaceRemoves={clearable}
deleteRemoves={clearable}
inputProps={{autoComplete: 'off'}}
{...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

0 comments on commit d323542

Please sign in to comment.