Coder Social home page Coder Social logo

Comments (5)

jaywcjlove avatar jaywcjlove commented on May 23, 2024

I may need to test it on Windows Chrome. @fellars

from react-md-editor.

stevemk14ebr avatar stevemk14ebr commented on May 23, 2024

I have also seen the behavior around 1:40 where the red underlines are not under the words but instead look like strikethrough and the cursor goes wonky. This has been seen on chrome on mac, as well as firefox on windows.

This occurs after using the textfield for some time and editing text as you'd normally do. I haven't been able to identify which operations cause the issue. Reloading the page usually fixes it. This is with the latest 3.3.6 version

<div id="editor-container" className="row" className="col-12" style={{ height: "100%", width: "100%", userSelect: "none", fontFamily: "Lucida Sans Typewriter", marginTop: "1em" }}>
 {/* subtract header height */}
    <MDEditor height={w_height - 90} value={text} textareaProps={{ spellCheck: true }} onChange={handleTextOnChange} previewOptions={{ transformLinkUri: () => { return "" },
                remarkPlugins,}}/>

from react-md-editor.

jaywcjlove avatar jaywcjlove commented on May 23, 2024

https://codesandbox.io/s/react-md-editor-for-react-147-37n3y?file=/index.js

I don't know how to reproduce it.

@stevemk14ebr

from react-md-editor.

stevemk14ebr avatar stevemk14ebr commented on May 23, 2024

yea i understand, it may even be a browser bug for all we know. As far as i can tell you're just using the standard html textarea with spellcheck = true which is where i think this is coming from. If i see it again ill try to debug it live. What's interesting is my application is a redux app, where everything is globally stored, and refreshing the page and restoring state exactly fixes the bug so it's not any kind of weird application state, but rather some other state issue which make me think the browser state is confused internally somehow

from react-md-editor.

stevemk14ebr avatar stevemk14ebr commented on May 23, 2024

Hello i think i have a lead. Just now I observed the textarea transition from correct highlighting to off-by-half and then this warning:
image

I'm using the components prop to override certain elements with custom react elements. 'Aster' is my child component type and it overrides the render of a special markdown-directive.

from react-md-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.