Created
October 28, 2017 20:54
-
-
Save matthieu-D/95cbfa256ab61a6a14535c48a838e63e to your computer and use it in GitHub Desktop.
This file contains 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
handleKeyDown = (e) => { | |
if (e.code === 'Enter') { | |
this.updateThisTodo(e.target.value); | |
this.isEditable = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment