summaryrefslogtreecommitdiffstats
path: root/webapp/components/team_general_tab.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2016-08-18 19:09:33 +0500
committerenahum <nahumhbl@gmail.com>2016-08-18 09:09:33 -0500
commite5a3e557376363042bbaf9923fca0d57fb6b8b3a (patch)
tree7d91cab5102d10ece021ef16b91e2491f368c2aa /webapp/components/team_general_tab.jsx
parentefb060a336bee414df6d6814369f696721e6437b (diff)
downloadchat-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_general_tab.jsx')
-rw-r--r--webapp/components/team_general_tab.jsx4
1 files changed, 3 insertions, 1 deletions
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);
}