Skip to content

<td onMouseDown={...} /> should trigger jsx-a11y/no-noninteractive-element-interactions #1064

@k-funk

Description

@k-funk

I just upgraded from eslint 6 to 9, and in the process, discovered that there was a change to no longer warn on this

<div onMouseDown={() => console.log('mouse down')}>Mouse down</div>

Seems it was very intentional. Curious of the motivation?
https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/src/util/isNonInteractiveElement.js#L82

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions