Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to detect change from the outside #3

Open
kolaente opened this issue Jul 14, 2020 · 5 comments
Open

Unable to detect change from the outside #3

kolaente opened this issue Jul 14, 2020 · 5 comments

Comments

@kolaente
Copy link

Whenever I change a value which I bound with v-model to an instance of vue-easymde and change it from the outside, it does not update inside of it.

This seems to be fixed in https://github.com/F-loat/vue-simplemde.

@NikulinIlya
Copy link
Owner

I believe that recent updates made depending on F-loat/vue-simplemde should solve this problem.

@kolaente
Copy link
Author

Just tested it with the new version, does not seem to fix that particular bug.

@evanre
Copy link

evanre commented Apr 16, 2021

Just faced with this issue. It seems that two-way binding feature explicitly closed here

vue-easymde/src/index.vue:

watch: {
  value(val) {
    if (this.isValueUpdateFromInner) {
      this.isValueUpdateFromInner = false;
    } else {
      this.easymde.value(val);
    }
  },
},

Hi, @NikulinIlya why do we need this isValueUpdateFromInner check?

@suxur
Copy link

suxur commented May 25, 2021

Make sure you're using v-model instead of the value prop.

<vue-easymde v-model="your_value" />

This worked for me.

@JuliusJacobitz
Copy link

JuliusJacobitz commented Nov 29, 2021

any updates on this?

I have a similar issue: If the v-model updates to an empty string, the change does not get detected. @NikulinIlya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants