Skip to content

Incorrect warning "avoid using JavaScript keyword as property name: if" #11499

@lonesomebyte537

Description

@lonesomebyte537

Version

2.6.11

Reproduction link

https://jsfiddle.net/tintin77/b3voj7er/

Steps to reproduce

When using a javascript expression with an if statement inside an event handler, vue reports incorrectly not to use javascript keywords as property names. See jsfiddle console (beta)

What is expected?

No warning

What is actually happening?

A warning

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