PLT-3842 - Fixing scrolling issue on account/team settings modal (#3819)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
efb060a336
Коммит
e5a3e55737
@@ -34,7 +34,9 @@ export default class ChannelNotificationsModal extends React.Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
updateSection(section) {
|
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});
|
this.setState({activeSection: section});
|
||||||
}
|
}
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
|
|||||||
@@ -81,7 +81,9 @@ class GeneralTab extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateSection(section) {
|
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.setState(this.setupInitialState(this.props));
|
||||||
this.props.updateSection(section);
|
this.props.updateSection(section);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,7 +58,9 @@ class TeamSettingsModal extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
updateSection(section) {
|
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});
|
this.setState({activeSection: section});
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
@@ -126,7 +126,9 @@ export default class AdvancedSettingsDisplay extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateSection(section) {
|
updateSection(section) {
|
||||||
$('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update');
|
if ($('.section-max').length) {
|
||||||
|
$('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update');
|
||||||
|
}
|
||||||
if (!section) {
|
if (!section) {
|
||||||
this.setState(this.getStateFromStores());
|
this.setState(this.getStateFromStores());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,9 @@ export default class UserSettingsDisplay extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateSection(section) {
|
updateSection(section) {
|
||||||
$('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update');
|
if ($('.section-max').length) {
|
||||||
|
$('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update');
|
||||||
|
}
|
||||||
this.updateState();
|
this.updateState();
|
||||||
this.props.updateSection(section);
|
this.props.updateSection(section);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -285,7 +285,9 @@ class UserSettingsGeneralTab extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateSection(section) {
|
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;
|
const emailChangeInProgress = this.state.emailChangeInProgress;
|
||||||
this.setState(Object.assign({}, this.setupInitialState(this.props), {emailChangeInProgress, clientError: '', serverError: '', emailError: ''}));
|
this.setState(Object.assign({}, this.setupInitialState(this.props), {emailChangeInProgress, clientError: '', serverError: '', emailError: ''}));
|
||||||
this.submitActive = false;
|
this.submitActive = false;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user