Skip to content

Commit

Permalink
allow search since 2 letters; Closes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliamKopecky committed Apr 28, 2019
1 parent 3e24b8c commit 0380914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TagSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class WithCallbacks extends React.Component<Props, State> {

loadOptions = (inputValue: any) => {
this.lastInput = inputValue
if (!inputValue || inputValue.length < 3) {
if (!inputValue || inputValue.length < 2) {
return Promise.resolve([])
}
return window.Einstore.getSuggestions(inputValue, this.props.teamId).then((suggestions) => {
Expand Down

0 comments on commit 0380914

Please sign in to comment.