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

vue-simple-suggestion always re-render even v-model not changed #329

Open
1 task
thgiang opened this issue Jul 1, 2020 · 0 comments
Open
1 task

vue-simple-suggestion always re-render even v-model not changed #329

thgiang opened this issue Jul 1, 2020 · 0 comments

Comments

@thgiang
Copy link

thgiang commented Jul 1, 2020

I'm submitting a ...

  • bug report

What is the current behavior?

vue-simple-suggestion always re-render even v-model not changed

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Basic test component:

<template>
  <div class="main-content">
    <div class="container-fluid">
      <vue-simple-suggest v-model="test"/>
      <input v-model="content" />
    </div>
  </div>
</template>

<script>
import VueSimpleSuggest from 'vue-simple-suggest'
export default {
  components: {
    VueSimpleSuggest,
  },
  data() {
    return {
      test: 'Tessttttttttttt',
      content: 'Content'
    }
  }
}
</script>

*** Using Vue-Devtools (Chrome extension) -> Vue -> Performance -> Component Render
Type something into the input text (named content) you will see that vue-simple-component re-render too.

What is the expected behavior?

I want: It only re-render when the v-model 's value is changed

Please tell us about your environment:

  • Vue.js Version: 2.6.11
  • Vue-simple-suggest version: 1.10.1 (Latest version)
  • Browser: Chrome XX
  • Language: ES6
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

1 participant