Skip to content

Commit cfafa66

Browse files
committed
version 0.11.2
1 parent 2929b6d commit cfafa66

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-search-input",
3-
"version": "0.11.1",
3+
"version": "0.11.2",
44
"description": "Simple react.js component for a search input, providing a filter function.",
55
"main": "lib/index.js",
66
"jsnext:main": "src/index.js",

src/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,20 @@ const Search = createReactClass({
6969
clearTimeout(this._throttleTimeout)
7070
}
7171

72-
this._throttleTimeout = setTimeout(() => this.props.onChange(searchTerm), this.props.throttle)
72+
this._throttleTimeout = setTimeout(
73+
() => this.props.onChange(searchTerm),
74+
this.props.throttle
75+
)
7376
})
7477
},
7578

7679
filter (keys) {
7780
const {filterKeys, caseSensitive, fuzzy, sortResults} = this.props
78-
return createFilter(this.state.searchTerm, keys || filterKeys, {caseSensitive, fuzzy, sortResults})
81+
return createFilter(
82+
this.state.searchTerm,
83+
keys || filterKeys,
84+
{caseSensitive, fuzzy, sortResults}
85+
)
7986
}
8087
})
8188

0 commit comments

Comments
 (0)