Created
February 10, 2020 20:14
-
-
Save surajitbasak109/269d398e1abcbdca2eead5044c639319 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocomplete(evt) { | |
// ... more code ... | |
} | |
hanldeKeyup(evt) { | |
// event code 27 means escape key | |
if (evt.keyCode === 27) { | |
this.setState({ searchItems: [] }); | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment