Skip to content

details element giving false positive for no-noninteractive-element-interactions #582

Closed
@anthony-dandrea

Description

@anthony-dandrea

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

I'm getting what I perceive to be a false positive for jsx-a11y/no-noninteractive-element-interactions . This is in fact an interactive element that can be toggled open and closed natively. I'm adding listeners to the element in order to provide fallback support for IE/Edge that do not support it.

<details
  onKeyDown={this.handleKey}
  onClick={this.toggle}
/>

Metadata

Metadata

Assignees

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