Skip to content

jQuery delegated events are not propagated to show the "events" icon in the INSPECTOR view. #472

@TheLaGmAn

Description

@TheLaGmAn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions