[Vuejs]-List of data with strange behavior when update firebase value on VueJS

0๐Ÿ‘

i have same problem too. But i think this can help you
It look so stupid but it work for me GL
updatePost: function(post) { this.$firebaseRefs.posts.child(post['.key']).child('title').set(post.title)
this.$firebaseRefs.posts.child(post['.key']).child('content').set(post. content)
this.$firebaseRefs.posts.child(post['.key']).child('story').set(post. story)
},

0๐Ÿ‘

You must use copy of the post

    editPost: function(post) {
        // Set post values to form
        // create a copy of the post
        this.newPost = {...post}
    },

Leave a comment