summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-09-02 13:55:13 -0700
committerCorey Hulen <corey@hulen.com>2015-09-02 13:55:13 -0700
commit723e0756e89597128ff01c53cf03482d31b1ddfd (patch)
treef944cf712d21578e8287b6fc79a13eb15251b43d
parent858896bd440799ddfe95b6d1cfd8671e2b9b0249 (diff)
parentd2904c4dcb84df4f9df8e16430cff21da5e46033 (diff)
downloadchat-723e0756e89597128ff01c53cf03482d31b1ddfd.tar.gz
chat-723e0756e89597128ff01c53cf03482d31b1ddfd.tar.bz2
chat-723e0756e89597128ff01c53cf03482d31b1ddfd.zip
Merge pull request #566 from nickago/hotfix
fixed bug in function binding causing search to slip to end word of post
-rw-r--r--web/react/utils/utils.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 716d2ef53..dc229bd36 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -565,7 +565,7 @@ export function textToJsx(textin, options) {
key={word + i + z + '_hash'}
className={'theme ' + mClass + highlightSearchClass}
href='#'
- onClick={() => searchForTerm(trimWord)} //eslint-disable-line no-loop-func
+ onClick={searchForTerm.bind(this, trimWord)} //eslint-disable-line no-loop-func
>
{trimWord}
</a>