GithubHelp home page GithubHelp logo

Comments (2)

junoyoon avatar junoyoon commented on July 22, 2024

Thx
I highly recommend u to make PR for it.
We will review and merge if it's OK.

from ngrinder.

imbyungjun avatar imbyungjun commented on July 22, 2024

I think that it is an issue caused by directly handling file contents in Editor.vue.

After saving, it changes file contents directly like this.file.content = ....
If this change is affected to the code mirror value at the same time, the editor will be working as we expected.
But, If the change is not affected to the code mirror value at the same time(that means it will be afftected on next tick), the erorr case will be reproduced.

I think that is the reason why the error is occured or not occurred when I run the repoduction steps multiple times.
(Also, the script validation does not change the file contents but, the file contents are changing in error case)

After I change like below in Editor.vue, there is no more error case can be reproduced.

// this.file.content = this.$refs.editor.getValue();
this.$refs.editor.codemirror.setValue(this.$refs.editor.getValue());

How often can you reproduce the error?
Can you reproduce the error after changing the code like described upon?

from ngrinder.

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.