FormidableLabs / prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)
MIT License
1.88k stars 153 forks source link

Cursor jumps while writing #245

Open alicemacl opened 3 months ago

alicemacl commented 3 months ago

Is there an existing issue for this?

Code of Conduct

Code Sandbox link

No response

Bug report

When writing code in the block the cursor jumps. Using the latest version.

codeblock-text-pointer

kavita-ng commented 2 months ago

@alicemacl - Hey, I have been trying to replicate this behaviour but so far have been unsuccessful. Here's a code sandbox with the same code shown in your issue report.

Can you please provide more information about your use case? Is editing the content resulting in a React state update, causing a conflict? Are you able to see this behaviour irrespective of theme / language / code size?