From 3ac40057de0be0c372a6bcdeaab90ae4cb0280ee Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 21 Dec 2017 16:25:44 +0100 Subject: [PATCH] improves autoFill behaviour --- examples/src/components/AutoComplete.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/src/components/AutoComplete.js b/examples/src/components/AutoComplete.js index 76820a6af3..9b3d4b08ed 100644 --- a/examples/src/components/AutoComplete.js +++ b/examples/src/components/AutoComplete.js @@ -7,17 +7,13 @@ import { COUNTRIES } from '../data/countries'; var AutoCompleteField = createClass({ displayName: 'AutoCompleteField', propTypes: { + label: PropTypes.string, autoComplete: PropTypes.string, }, componentDidMount() { // reveal hidden input for testing document.querySelector('[autocomplete="country"]').classList.remove('Select-hidden'); }, - getDefaultProps () { - return { - label: 'States:', - }; - }, getInitialState () { return { selectValue: '', @@ -32,9 +28,7 @@ var AutoCompleteField = createClass({ return (

{this.props.label} (Source)

-
- -
+