Bug Fixes 🐞
- Removed Redundant Click-Outside Logic:
- The
useEffect
that handled clicks outside the popover has been removed. This was causing issues where clicking outside on elements withuser-select: none
would unintentionally close the popover, even though the text remained highlighted. - Since clicking outside naturally removes text selection, the previous logic was redundant and caused bugs by closing the popover prematurely.
- The
To upgrade to v1.3.2, run:
npm install @omsimos/react-highlight-popover@latest
Full Changelog: v1.3.1...v1.3.2