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

False positives with rule no-static-element-interactions and drag and drop handlers? #980

Open
Evertvdw opened this issue Dec 7, 2023 · 0 comments

Comments

@Evertvdw
Copy link

Evertvdw commented Dec 7, 2023

Hello there! I just started using this ESLint extension, and I noticed it is flagging a lot of stuff of which I doubt is valid.

I have HTML like:

<div
  @dragover="dragOver"
  @dragleave="dragLeave"
  @dragenter="preventDefault"
  @drop="onDrop"
>

Which will trigger the rule no-static-element-interactions but is that correct? I cannot put a role attribute on this element because there is no role for an element being a valid dropping target. I can of course just ignore that rule in this case but I'm raising the issue here because maybe some event listeners should be excluded from triggering this rule, like the 4 above here.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant