diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-02 13:55:13 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-02 13:55:13 -0700 |
commit | 723e0756e89597128ff01c53cf03482d31b1ddfd (patch) | |
tree | f944cf712d21578e8287b6fc79a13eb15251b43d /web | |
parent | 858896bd440799ddfe95b6d1cfd8671e2b9b0249 (diff) | |
parent | d2904c4dcb84df4f9df8e16430cff21da5e46033 (diff) | |
download | chat-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
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
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> |