Skip to content

Commit f2f6d01

Browse files
committed
Release 3.1.5
1 parent 469339b commit f2f6d01

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-autocomplete-dropdown-playground",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"author": "Alexandr Kozhevnikov <onmotion1@gmail.com>",
55
"license": "MIT",
66
"scripts": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-autocomplete-dropdown",
3-
"version": "3.1.4",
3+
"version": "3.1.5",
44
"description": "Dropdown Item picker with search and autocomplete (typeahead) functionality for react native",
55
"main": "src/index.js",
66
"typings": "src/index.d.ts",

src/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,11 @@ export const AutocompleteDropdown = memo(
6363
useEffect(() => {
6464
// VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead.
6565
LogBox.ignoreLogs(['VirtualizedLists should never be nested'])
66-
}, [])
6766

68-
useEffect(() => {
69-
// Do content cleaning when the component is unmounted
7067
return () => {
7168
setContent(undefined)
72-
};
73-
}, []);
69+
}
70+
}, [])
7471

7572
/** Set initial value */
7673
useEffect(() => {
@@ -206,11 +203,11 @@ export const AutocompleteDropdown = memo(
206203
let findWhat = searchText.toLowerCase()
207204

208205
if (ignoreAccents) {
209-
findWhat = diacriticless(findWhat)
206+
findWhat = diacriticless(findWhat)
210207
}
211208

212209
if (trimSearchText) {
213-
findWhat = findWhat.trim()
210+
findWhat = findWhat.trim()
214211
}
215212

216213
const newSet = props.dataSet.filter(item => {

0 commit comments

Comments
 (0)