From b64604964d239780ecd4a0508682fe77c131f45b Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 7 Apr 2016 12:05:07 +0100 Subject: [PATCH] Fix exception in key handling Fix a typo introduced in PR #262 which caused scroll keys to throw console errors. --- src/components/structures/MessagePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 6c4c2a0acb..55338abed4 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -164,7 +164,7 @@ module.exports = React.createClass({ */ handleScrollKey: function(ev) { if (this.refs.scrollPanel) { - this.refs.handleScrollKey(ev); + this.refs.scrollPanel.handleScrollKey(ev); } },