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 all commits
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
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