magicui
magicui copied to clipboard
[bug]: text highlighter was drawn multiple times when color change
Describe the bug
When I change my theme, I also change my highlighter color too. But when the color is changed, the prevent hightlighter don't remove, and new hightlighter is drawn.
Affected component/components
Text Highlighter
How to reproduce
- use Text Highlighter
- change the color
- you will get the trouble
Codesandbox/StackBlitz link
No response
Logs
System Info
all
Before submitting
- [x] I've made research efforts and searched the documentation
- [x] I've searched for existing issues