diff options
author | Asaad Mahmood <asaadmahmood@users.noreply.github.com> | 2016-08-18 19:09:33 +0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-08-18 09:09:33 -0500 |
commit | e5a3e557376363042bbaf9923fca0d57fb6b8b3a (patch) | |
tree | 7d91cab5102d10ece021ef16b91e2491f368c2aa /webapp/components/team_settings_modal.jsx | |
parent | efb060a336bee414df6d6814369f696721e6437b (diff) | |
download | chat-e5a3e557376363042bbaf9923fca0d57fb6b8b3a.tar.gz chat-e5a3e557376363042bbaf9923fca0d57fb6b8b3a.tar.bz2 chat-e5a3e557376363042bbaf9923fca0d57fb6b8b3a.zip |
PLT-3842 - Fixing scrolling issue on account/team settings modal (#3819)
Diffstat (limited to 'webapp/components/team_settings_modal.jsx')
-rw-r--r-- | webapp/components/team_settings_modal.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/team_settings_modal.jsx b/webapp/components/team_settings_modal.jsx index aa7b0831e..bbe426d2e 100644 --- a/webapp/components/team_settings_modal.jsx +++ b/webapp/components/team_settings_modal.jsx @@ -58,7 +58,9 @@ class TeamSettingsModal extends React.Component { } } updateSection(section) { - $('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update'); + if ($('.section-max').length) { + $('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update'); + } this.setState({activeSection: section}); } render() { |