From d2904c4dcb84df4f9df8e16430cff21da5e46033 Mon Sep 17 00:00:00 2001 From: nickago Date: Wed, 2 Sep 2015 13:49:53 -0700 Subject: fixed bug in function binding causing trimWord to slip to end word of post --- web/react/utils/utils.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/utils') diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 6267ebd8f..4b071cdba 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -564,7 +564,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} -- cgit v1.2.3-1-g7c22