From 45a813b7953a2a2c8e10f700797099d7f00777af Mon Sep 17 00:00:00 2001 From: wmwragg Date: Tue, 30 Aug 2016 11:56:16 +0100 Subject: [PATCH] Fixed historical scetion not scrolling up when clicked if not hidden and stuck --- src/components/structures/RoomSubList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 4fd2618d6b..2565bd1ffa 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -169,7 +169,7 @@ var RoomSubList = React.createClass({ this.props.onHeaderClick(isHidden); } else { // The header is stuck, so the click is to be interpreted as a scroll to the header - this.props.onHeaderClick(isHidden, this.refs.header.dataset.originalPosition); + this.props.onHeaderClick(this.state.hidden, this.refs.header.dataset.originalPosition); } },