The line: if (!standalone && (mEntry.indexOf(userInput) == 0)) {
should be as: if (!standalone && (mEntry.indexOf(userInput) != -1)) {
indexOf returns -1 in case if substring not found.
Log in to post a comment.