bvaughn/react-highlight-words

Adjacent active chunks are handled as a single chunk

開放

#68 建立於 2018年12月4日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (176 個分叉)github user discovery
bughelp wanted

倉庫指標

星標
 (2,303 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

See this example: https://codesandbox.io/s/7j2njo9l2q.

searchWords={["e"]}
textToHighlight="sleep"
activeIndex={0} 

highlights both ee instead of just the first e. With activeIndex={1} nothing gets highlighted.

貢獻者指南