Skip to content

Fallthrough attributes are recognized as errors #2671

@Under-estimate

Description

@Under-estimate

Volar plugin version v1.4.2
Fallthrough attributes are recognized as errors (title attribute in the following code):

<el-button title="edit note"></el-button>

vscode error:

Type '{ title: string; }' is not assignable to type 'IntrinsicAttributes & Partial<{ readonly type: EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "primary" | "danger" | "text", unknown>; ... 12 more ...; readonly autofocus: boolean; }> & Omit<...>'.
  Property 'title' does not exist on type 'IntrinsicAttributes & Partial<{ readonly type: EpPropMergeType<StringConstructor, "" | "default" | "success" | "warning" | "info" | "primary" | "danger" | "text", unknown>; ... 12 more ...; readonly autofocus: boolean; }> & Omit<...>'.ts(2322)

screenshot:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions