Skip to content

different behavior between this['key'] and $data['key'] for v-model? #8080

@cj1205

Description

@cj1205

Version

2.5.16

Reproduction link

https://stackoverflow.com/questions/50008446/what-are-the-differences-between-thiskey-and-datakey-for-v-model

Steps to reproduce

type in something in third input whose v-model="this['test 1']", then you will find this['test 1'] will not be updated.

What is expected?

the behavior should be same as the second input whose v-model="$data['test 1']", when users type in something, the data property='test 1' will be updated.

What is actually happening?

the data property='test 1' will not be updated

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