bvaughn/react-highlight-words

Adjacent active chunks are handled as a single chunk

Ouverte

#68 ouverte le 4 déc. 2018

 (2 commentaires) (0 réaction) (0 personne assignée)JavaScript (176 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (2 303 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur