summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_notifications_modal.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/channel_notifications_modal.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/channel_notifications_modal.jsx')
-rw-r--r--webapp/components/channel_notifications_modal.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/channel_notifications_modal.jsx b/webapp/components/channel_notifications_modal.jsx
index f18cefa23..35a2e4087 100644
--- a/webapp/components/channel_notifications_modal.jsx
+++ b/webapp/components/channel_notifications_modal.jsx
@@ -34,7 +34,9 @@ export default class ChannelNotificationsModal 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});
}
componentWillReceiveProps(nextProps) {