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_general_tab.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

diff --git a/webapp/components/team_general_tab.jsx b/webapp/components/team_general_tab.jsx
index 7ca8f8fce..4d1860de3 100644
--- a/webapp/components/team_general_tab.jsx
+++ b/webapp/components/team_general_tab.jsx
@@ -81,7 +81,9 @@ class GeneralTab 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(this.setupInitialState(this.props));
         this.props.updateSection(section);
     }
-- 
cgit v1.2.3-1-g7c22

