Merge pull request #566 from nickago/hotfix

fixed bug in function binding causing search to slip to end word of post
Этот коммит содержится в:
Corey Hulen
2015-09-02 13:55:13 -07:00
родитель 858896bd44 d2904c4dcb
Коммит 723e0756e8

Просмотреть файл

@@ -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>