Closed asapach closed 5 years ago
Oh, yuck 😦 I overlooked this aspect.
I'll fix this behavior in the base library, but it's possible that it will still trigger for anyone that was spreading props on their own DOM elements.
Fix published with 0.15.1
Thanks for the report!
70 introduced a regression, which leads to a console warning:
Here's the code that produces the warning:
The problem is that by default
highlightTag
is<mark>
which does not support extra props: https://github.com/bvaughn/react-highlight-words/blob/348a207ed91063c7d99b842bba5cd743c760c19e/src/Highlighter.js#L50https://github.com/bvaughn/react-highlight-words/blob/348a207ed91063c7d99b842bba5cd743c760c19e/src/Highlighter.js#L107-L112
/cc @pkmoran