antonmedv/codejar

Cursor keeps jumping back to start when using prismjs as highlighter.

chaoticryptidz opened this issue · 1 comments

found the issue, it trys to pass Position as a boolean to the second argument of highlightElement.
Therefore your demo site has wrong code and instead needs to use (e) => highlightElement(e) and not just highlightElement