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

jquery-api's codemod transforms non-event listeners as if they are event listeners. #38

Open
runspired opened this issue Dec 1, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@runspired
Copy link

runspired commented Dec 1, 2021

examples:

-          this.$("#accountLineModal").modal("hide");
+          this.element.querySelectorAll("#accountLineModal").forEach(el => el.addEventListener("hide"));
-      this.$(".item-filter").val("");
+      this.element.querySelectorAll(".item-filter").forEach(el => el.addEventListener(""));
-          this.$("input").blur();
+          this.element.querySelectorAll("input").forEach(el => el.addEventListener());
@runspired runspired changed the title query-api's codemod transforms non-event listeners as if they are event listeners. jquery-api's codemod transforms non-event listeners as if they are event listeners. Dec 1, 2021
@rajasegar rajasegar added the bug Something isn't working label Dec 2, 2021
@rami-alloush
Copy link

I just used it and it screwed the code. It should be either fixed or removed for now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants