diff options
author | Renard | 2020-03-09 19:24:40 -0300 |
---|---|---|
committer | Renard | 2020-03-09 19:24:40 -0300 |
commit | ac07257e1526a6fd658a67427555dc6951309f9e (patch) | |
tree | 245cd1c1c1da06ef96139fa39e2199d3afd7cc4d | |
parent | 4adaf01b3cdc86d560f9c5786a1b66690b757179 (diff) | |
download | bairadio-app-ac07257e1526a6fd658a67427555dc6951309f9e.tar.gz bairadio-app-ac07257e1526a6fd658a67427555dc6951309f9e.tar.xz bairadio-app-ac07257e1526a6fd658a67427555dc6951309f9e.zip |
Historial de canciones en orden inverso
-rw-r--r-- | src/App.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -63,12 +63,8 @@ class App extends Component { addToHistory(song) { this.setState(prevState => ({ - history: [...prevState.history, song] + history: [song, ...prevState.history] })); - let historyContainer = document.getElementById("historyContainer"); - if (historyContainer != null) { - historyContainer.scrollTop = historyContainer.scrollHeight; - } } compareSongs() { |