Scroll breadcrumbs to the left when they change
Fixes https://github.com/vector-im/riot-web/issues/9355
This commit is contained in:
@@ -173,6 +173,10 @@ export default class RoomBreadcrumbs extends React.Component {
|
||||
rooms.splice(MAX_ROOMS, rooms.length - MAX_ROOMS);
|
||||
}
|
||||
this.setState({rooms});
|
||||
|
||||
if (this.refs.scroller) {
|
||||
this.refs.scroller.moveToOrigin();
|
||||
}
|
||||
}
|
||||
|
||||
_viewRoom(room) {
|
||||
|
||||
Reference in New Issue
Block a user