Skip to content

[Bug]: onResize reported by react/no-unknown-property on video elements #3594

Closed
@Volcomix

Description

@Volcomix

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

HTMLMediaElements have a resize event that has been added in react 18. When using onResize on a video element, the rule react/no-unknown-property reports an error. Typescript is however happy with it and let me build the application if I ignore the rule.

image

Expected Behavior

No error report when using onResize on an HTMLMediaElement.

eslint-plugin-react version

v7.32.2

eslint version

v8.43.0

node version

v20.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions