diff --git a/CHANGELOG.md b/CHANGELOG.md index fd14fe9f6..1a1997c56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/src/fragments/Dropdown.react.js b/src/fragments/Dropdown.react.js index 15b0b93cf..2f819b353 100644 --- a/src/fragments/Dropdown.react.js +++ b/src/fragments/Dropdown.react.js @@ -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)} /> diff --git a/tests/unit/Dropdown.test.js b/tests/unit/Dropdown.test.js index c10fd24d3..a1570f562 100644 --- a/tests/unit/Dropdown.test.js +++ b/tests/unit/Dropdown.test.js @@ -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,