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

Commit d323542

Browse files
authored
Merge pull request #923 from AnnMarieW/disable-autocomplet-dropdown-#808
sets autoComplete to off in Dropdown #808
2 parents 6aa850d + 4fc87cc commit d323542

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## UNRELEASED
6+
7+
### Changed
8+
- [#923](https://github.com/plotly/dash-core-components/pull/923)
9+
Set autoComplete to off in `dcc.Dropdown`. This fixes [#808](https://github.com/plotly/dash-core-components/issues/808)
10+
511
## [1.15.0] - 2021-01-19
612
### Fixed
713
- [#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).

src/fragments/Dropdown.react.js

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export default class Dropdown extends Component {
9797
onInputChange={search_value => setProps({search_value})}
9898
backspaceRemoves={clearable}
9999
deleteRemoves={clearable}
100+
inputProps={{autoComplete: 'off'}}
100101
{...omit(['setProps', 'value'], this.props)}
101102
/>
102103
</div>

tests/unit/Dropdown.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('Props can be set properly', () => {
1818
{label: 'Disabled', value: 'x', disabled: true},
1919
],
2020
value: 2,
21+
autoComplete: 'off',
2122
optionHeight: 50,
2223
className: 'dd-class',
2324
clearable: true,

0 commit comments

Comments
 (0)