-
-
Notifications
You must be signed in to change notification settings - Fork 656
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose: Make the message text input uncontrolled
Remove the `value={message}` from message text input making it an uncontrolled component. Then do the following changes to reimplement previous behavior: * at the very start in `componentDidMount` make sure we update the component with the initial values (coming from state) * ensure that autocomplete changes the input values * on editing a message set the input text to the previous message contents
- Loading branch information
1 parent
e04cdc5
commit 2345414
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
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