diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-02-20 19:11:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-20 19:11:03 +0100 |
commit | 5b5fda7cd24e6265814ddda23b9af2ceef8bcd99 (patch) | |
tree | 5c5a07e0313d4ec14a59f3acda3166f53c018c6b /Gruntfile.js | |
parent | 19c628675dadc714616af975969694267f3840df (diff) | |
download | jquery-ui-5b5fda7cd24e6265814ddda23b9af2ceef8bcd99.tar.gz jquery-ui-5b5fda7cd24e6265814ddda23b9af2ceef8bcd99.zip |
Tests: Account for an extra noop focus/blur listener in jQuery >=3.4
jQuery >=3.4.0 uses a special focus/blur handler pair needed to fix various
issues with checkboxes/radio buttons as well as being able to pass data in focus
triggers. This leaves extra focus & blur events if any of these events were ever
listened to at a particular element.
We've started skipping these handlers in the `domEqual` assertion in gh-1930 but
we missed a case where an event is triggered before any handler is attached -
jQuery >=3.4.0 attaches then an extra noop listener just to force the code path
to go through the setup code before the trigger happens. We now skip this extra
handler as well.
This fixes a test failure in "dialog: methods" destroy tests.
Closes gh-1945
Ref jquery/jquery#4496
Ref gh-1930
Diffstat (limited to 'Gruntfile.js')
0 files changed, 0 insertions, 0 deletions