eslint-plugin-react icon indicating copy to clipboard operation
eslint-plugin-react copied to clipboard

[Bug]: no-unknown-property does not recognize onScrollEnd, onScrollEndCapture events

Open xfeeefeee opened this issue 2 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues and my issue is unique
  • [x] My issue appears in the command-line and not only in the text editor

Description Overview

Adding an onScrollEnd or onScrollEndCapture event handler is not recognized as a known property.

this triggers the warning Unknown property 'onScrollEnd' found

<div onScrollEnd={handleScrollEnd}>

issue appears within lib/rules/no-unknown-property.js, DOM_PROPERTY_NAMES_TWO_WORDS

Expected Behavior

this should not trigger the no-unknown-property rule:

<div onScrollEnd={handleScrollEnd} onScrollEndCapture={handleScrollEndCapture}>

eslint-plugin-react version

v7.37.5

eslint version

v8.57.1

node version

v22.16.0

xfeeefeee avatar Oct 03 '25 19:10 xfeeefeee