Open mp1pro opened 6 years ago
The reason why the playlistName does not reset when the 'save to spotify' button is clicked is because the value of the input that displays the name has a default value not set to this.props.playlistName like so;
this.props.playlistName
<input defaultValue={'New Playlist'} onChange={this.handleNameChange}/>
It should be like this instead;
<input value={this.props.playlistName} onChange={this.handleNameChange}/>
in playList.js
The reason why the playlistName does not reset when the 'save to spotify' button is clicked is because the value of the input that displays the name has a default value not set to
this.props.playlistName
like so;<input defaultValue={'New Playlist'} onChange={this.handleNameChange}/>
It should be like this instead;
<input value={this.props.playlistName} onChange={this.handleNameChange}/>
in playList.js