Vue: prop sync modifier warning in vue v2.5.4

Created on 17 Jan 2018  ·  1Comment  ·  Source: vuejs/vue

https://vuejs.org/v2/guide/components.html#sync-Modifier

prop with sync modifier used as v-model to control dialog visibility

vue.esm.js?65d7:574 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "visible"

image

>All comments

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

Was this page helpful?
0 / 5 - 0 ratings