Skip to content

Commit

Permalink
Fix Update Error in Main Menu Settings #111
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Jul 18, 2016
1 parent 59c5266 commit c93a3ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/MainMenu/components/Settings.js
Expand Up @@ -122,9 +122,10 @@ default React.createClass({
plugins.events.removeListener('pluginListUpdate', this.decideUpdate);
},
componentDidUpdate() {
if (!skipScroll)
document.querySelector('.plugin-list').scrollTop = 0;
else skipScroll = false;
if (!skipScroll) {
var pluginListEl = document.querySelector('.plugin-list');
if (pluginListEl) pluginListEl.scrollTop = 0;
} else skipScroll = false;
},
componentDidMount() {
// add event listeners for togglers
Expand Down

0 comments on commit c93a3ad

Please sign in to comment.