Skip to content

Commit 45a813b

Browse files
committed
Fixed historical scetion not scrolling up when clicked if not hidden and stuck
1 parent 7b7a77b commit 45a813b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/components/structures/RoomSubList.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ var RoomSubList = React.createClass({
169169
this.props.onHeaderClick(isHidden);
170170
} else {
171171
// The header is stuck, so the click is to be interpreted as a scroll to the header
172-
this.props.onHeaderClick(isHidden, this.refs.header.dataset.originalPosition);
172+
this.props.onHeaderClick(this.state.hidden, this.refs.header.dataset.originalPosition);
173173
}
174174
},
175175

0 commit comments

Comments
 (0)