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 delegated events are not propagated to show the "events" icon in the INSPECTOR view. #472

Open
TheLaGmAn opened this issue May 6, 2016 · 0 comments

Comments

@TheLaGmAn
Copy link

TheLaGmAn commented May 6, 2016

I also submited a bug here (dont know if its the correct place)

https://bugzilla.mozilla.org/show_bug.cgi?id=1270884

Steps to reproduce:

HTML:
<script src="https://code.jquery.com/jquery-2.2.3.js" integrity="sha256-laXWtGydpwqJ8JA+X9x2miwmaiKhn8tVmOVEigRNtP4=" crossorigin="anonymous"></script>
<style> .media_preview { width:100px; height:100px; display:inline-block; margin:10px; } </style>
`




` `<script> $(document).ready(function(){ $(".media_preview_container").on("click.test",".media_preview",function(){ alert('clicked on media preview class'); }); }); </script>`

Steps:
Open dev console, browse the .media_preview DIV and it has no event icon set, only the .media_preview_container has it and it doesnt point to any child, so there is no way to know that event is actually delegated to .media_preview

Actual results:

.media_preview doesnt show an event icon even tho it has an event assigned thru a delegation of .media_preview_container

Expected results:

Show the event icon in the .media_preview DIV and show its event code.

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