Fixed endless scrolling up (#3156)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
db2ca26a02
Коммит
f920b80e54
@@ -169,6 +169,12 @@ export default class Sidebar extends React.Component {
|
|||||||
$('.sidebar--left .nav-pills__container').perfectScrollbar();
|
$('.sidebar--left .nav-pills__container').perfectScrollbar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// reset the scrollbar upon switching teams
|
||||||
|
if (this.state.currentTeam !== prevState.currentTeam) {
|
||||||
|
this.refs.container.scrollTop = 0;
|
||||||
|
$('.nav-pills__container').perfectScrollbar('update');
|
||||||
|
}
|
||||||
|
|
||||||
// close the LHS on mobile when you change channels
|
// close the LHS on mobile when you change channels
|
||||||
if (this.state.activeId !== prevState.activeId) {
|
if (this.state.activeId !== prevState.activeId) {
|
||||||
$('.app__body .inner-wrap').removeClass('move--right');
|
$('.app__body .inner-wrap').removeClass('move--right');
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user