Skip to content

cannot watch unicode properties like 'a.中文'  #8862

Closed
@ensleep

Description

@ensleep

Version

2.5.17

Reproduction link

https://jsfiddle.net/k72f3Lon/

Steps to reproduce

1.webpack project with vue .
2.add a component .
3.create instance of Vue .
4.add a property data:function(){return {a:{中文:"",b:""}}} to the instance.
5.add watch properties to the instance as watch:{'a.b':function(val){},'a.中文':function(val){}}
6.console show error that Watcher only accepts simple dot-delimited paths.

What is expected?

no error the code run continue

What is actually happening?

the code seems stopped to run

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions