From e5a3e557376363042bbaf9923fca0d57fb6b8b3a Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Date: Thu, 18 Aug 2016 19:09:33 +0500
Subject: PLT-3842 - Fixing scrolling issue on account/team settings modal
 (#3819)

---
 webapp/components/team_settings_modal.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'webapp/components/team_settings_modal.jsx')

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() {
-- 
cgit v1.2.3-1-g7c22

