Skip to content

Commit 725e7f6

Browse files
committed
Typos
1 parent 30074c9 commit 725e7f6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,14 @@ Change valueExtractor and pass the data to Autocomplete without fetchDataUrl
159159
containerStyle | Styles for dropdown container view | Object | -
160160
scrollStyle | Styles for dropdown flatlist | Object | -
161161
scrollToInput | Focus on selected field | Function | -
162-
handleSelectItem | Selection callback (agrs: item, index) | Function | -
162+
handleSelectItem | Selection callback (args: item, index) | Function | -
163163
onDropdownShow | Show keyboard | Function | -
164164
onDropdownClose | Hide keyboard | Function | -
165165
onChangeText | Autocomplete input text changes | Function | -
166166
renderIcon | Render icon near input | Function | -
167167
valueExtractor | Extract value from item (args: item, index) | Function | ({ value }) => value
168168
rightTextExtractor | Extract value from item (args: item, index) | Function | ({ value }) => value
169-
fetchData | Fetch data for autocomplete | Function | (searchInput) => Promise
169+
fetchData | Fetch data for autocomplete | Function | -
170170

171171
### Authors:
172172

components/Autocomplete/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ class Autocomplete extends Component {
117117
}
118118

119119
setItem(value) {
120-
const { index, handleSelectItem, valueExtractor, resetOnSelect } = this.props;
120+
const {index, handleSelectItem, valueExtractor, resetOnSelect} = this.props;
121121
handleSelectItem(value, index);
122-
122+
123123
if (resetOnSelect) {
124-
this.setState({ inputValue: '' });
124+
this.setState({inputValue: ""});
125125
} else {
126-
const capitalizedValue = capitalizeFirstLetter(valueExtractor(value));
127-
this.setState({inputValue: capitalizedValue});
126+
const capitalizedValue = capitalizeFirstLetter(valueExtractor(value));
127+
this.setState({inputValue: capitalizedValue});
128128
}
129129
}
130130

0 commit comments

Comments
 (0)