Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

173
Views
How can we resolve eslint error on <p> tag "Non-interactive elements should not be assigned interactive roles"

Below is the code I am trying to execute, but facing error in converting it to keyboard accessible:

<p className={styles['clear-text']} onClick={clearAllFilters}>
  {'Clear All'}
</p
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

here is an official explanation https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-noninteractive-element-to-interactive-role.md.

In short: either change the element type or make an exception in the eslint settings. Regarding settings, there are 2 options: global setting of special comments

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!