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

When using the v-model binding value in a custom component, the value in vue-devtools is not updated in real time #1319

Closed
syt-honey opened this issue Nov 30, 2020 · 2 comments
Labels
cannot reproduce We cannot reproduce the problem with the given information. More env information needed. need repro

Comments

@syt-honey
Copy link

Version

6.0.0-beta.2

Browser and OS info

Chrome 87.0.4280.67 (Official build) (x86_64)/ mac OS Catalina v10.15.5

Steps to reproduce

  1. custom a dialog component, named ChDialog
  2. use it in the parent component and define an input component in it
  3. v-model of input is bound to test
  4. open vue-devtools to view the corresponding binding value
  5. Enter the content in the input box, vue-devtools has no corresponding update

What is expected?

When inputting content in input, the corresponding bound test value is updated in real time in vue-devtools

What is actually happening?

After entering the value, I need to switch the component in vue-devtools to see the updated value


My custom dialog component:

<div class="dialog-container">
      <div class="dialog-body">
        <slot></slot>
      </div>
</div>

use it:

<template>
  <ch-dialog>
     <input v-model="test" type="text" placeholder="please input" >
  </ch-dialog>
</template>

<script>
import { ref } from "vue";
export default {
  name: "Index",

  setup() {
    let test = ref("")
    return {
      test
    };
  }
}
</script>
@Akryum Akryum added the v6 label Jan 29, 2021
@Akryum
Copy link
Member

Akryum commented Feb 1, 2021

Please provide a runnable reproduction, as I cannot reproduce on next branch.

@Akryum Akryum added cannot reproduce We cannot reproduce the problem with the given information. More env information needed. need repro labels Feb 1, 2021
@Akryum
Copy link
Member

Akryum commented May 24, 2021

Superseded by #1404

@Akryum Akryum closed this as completed May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot reproduce We cannot reproduce the problem with the given information. More env information needed. need repro
Projects
None yet
Development

No branches or pull requests

2 participants