Giter VIP home page Giter VIP logo

Comments (2)

kitten avatar kitten commented on July 22, 2024

When you type a char, it is added at a position other than the cursor.

I think you may want to add more details on how to reproduce this. I've just taken a look and the demo still works fine for me and as expected.

react-simple-code-editor works by keeping a texteditor and a div in sync with the same content and formatting, so if they're not in sync, the cursor won't be in sync. But I think in this case this issue will need more details on how to reproduce this.

from react-simple-code-editor.

GiardEmilien avatar GiardEmilien commented on July 22, 2024

@kitten Thanks for looking at my issue.
The bug only occurs on Chrome and it seams the bug does not appear when copy-pasting.
Can you try going to the demo, at the end of the last line type " function" then enter like 20 spaces (enough to fill the line) then type a char. It pops after the cursor.
I have tried it on a coworker's laptop and the bug showed.
As you can see on the screenshot below, I have type the char "d" and it did not print at the cursor (the cursor is at the beginning of the line):
Capture d’écran 2020-02-11 à 16 26 53

I found a stackoverflow post describing the issue on chrome: https://stackoverflow.com/questions/14676036/google-chrome-bug-with-pre-wrap

from react-simple-code-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.