sniebauer / jammming

0 stars 0 forks source link

Reset playlistName #5

Open mp1pro opened 6 years ago

mp1pro commented 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;

<input defaultValue={'New Playlist'} onChange={this.handleNameChange}/>

It should be like this instead;

<input value={this.props.playlistName} onChange={this.handleNameChange}/>

in playList.js