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/user_settings/user_settings_general.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/user_settings/user_settings_general.jsx')
-rw-r--r-- | webapp/components/user_settings/user_settings_general.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/user_settings/user_settings_general.jsx b/webapp/components/user_settings/user_settings_general.jsx index e725060ab..814773344 100644 --- a/webapp/components/user_settings/user_settings_general.jsx +++ b/webapp/components/user_settings/user_settings_general.jsx @@ -285,7 +285,9 @@ class UserSettingsGeneralTab 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'); + } const emailChangeInProgress = this.state.emailChangeInProgress; this.setState(Object.assign({}, this.setupInitialState(this.props), {emailChangeInProgress, clientError: '', serverError: '', emailError: ''})); this.submitActive = false; |