Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
Volcomix opened this issue Jun 29, 2023 · 0 comments · Fixed by #3662
Closed
2 tasks done

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

Volcomix opened this issue Jun 29, 2023 · 0 comments · Fixed by #3662

Comments

@Volcomix
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants