You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting. Looks like this is due to the [highlight-words-core combineChunks method joining the adjacent chunks before returning them.
I haven't thought about this code in a long time, but my initial thoughts are that the easiest way to fix this would probably be to tell highlight-words-core not to combine chunks if an activeIndex value is provided. Probably the easiest way to do that is to just pass a no-op findChunks param to highlight-words-core.
Interested in contributing a PR that does something like this?
See this example: https://codesandbox.io/s/7j2njo9l2q.
highlights both
ee
instead of just the firste
. WithactiveIndex={1}
nothing gets highlighted.The text was updated successfully, but these errors were encountered: