Skip to content

Commit

Permalink
Fix user settings modal bug on master (mattermost#5232)
Browse files Browse the repository at this point in the history
Co-authored-by: Nevyana Angelova <[email protected]>
  • Loading branch information
nevyangelova and Nevyana Angelova committed Mar 30, 2020
1 parent 1dbfe22 commit 987045a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/user_settings/modal/user_settings_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class UserSettingsModal extends React.Component<Props, State> {
componentDidUpdate(prevProps: Props, prevState: State) {
if (this.state.active_tab !== prevState.active_tab) {
const el = ReactDOM.findDOMNode(this.modalBodyRef.current) as any;
el.scrollTop(0);
el.scrollTop = 0;
}
}

Expand Down

0 comments on commit 987045a

Please sign in to comment.