Skip to content

no-unknown-property does not recognize onClickCapture on <div> #3400

@chenxinyanc

Description

@chenxinyanc

Using eslint-plugin-react v7.31.6

The following code

<div onClickCapture={() => {}} />

Emits the following error

Unknown property 'onClickCapture' found eslint (react/no-unknown-property)

But there are multiple xxxCapture events defined in the React for these primitive elements:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/1beed2ef47be5c1c283132c6cdfbd806ad0fb4ae/types/react/index.d.ts#L1477-L1512

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