Skip to content

Focusout event on $(window) & $(document) : events call twice #4652

@dutrieux

Description

@dutrieux

Description

If I attach focusout event on the $(window) and $(document), each events are called twice.

I use jQuery v3.4.1 and I have the same problem with Firefox (v74.0.1) and Chrome (v80.0.3987.163).
If I use native Js, each events are called once.

Link to test case

https://jsbin.com/rilamarodi/1/edit?html,css,js,output
open console, focus input field and go out (remove focus) to see on console that each events are called twice.

focusout

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions