Skip to content

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

@xfeeefeee

Description

@xfeeefeee

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions