Skip to content

Can't pre-populate fields in edit forms #24

@dennisbrandenberger

Description

@dennisbrandenberger

I find it very difficult to populate a form with existing data derived from a query. in order to update the v-model connected variables in data(), I've tried to do this:

created () {
  this.description = this.Post.description
}

but it only works once in a while. (wrong timing)

I've also tried:

watchLoading (isLoading, countModifier) {
 if (!isLoading) {
  this.description = this.Post.description
 }
}

But that does not work either. Any suggestions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions