Upgrade select2 to support jQuery v4#3768
Upgrade select2 to support jQuery v4#3768Simrayz merged 3 commits intochore/upgrade-jquery-to-v4from
Conversation
Test results 26 files 26 suites 45m 16s ⏱️ Results for commit 734183c. ♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## chore/upgrade-jquery-to-v4 #3768 +/- ##
==============================================================
- Coverage 63.18% 63.14% -0.05%
==============================================================
Files 615 615
Lines 45507 45502 -5
Branches 43 43
==============================================================
- Hits 28753 28731 -22
- Misses 16744 16761 +17
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d9e3bff to
d841aae
Compare
johannaengland
left a comment
There was a problem hiding this comment.
When I try to test the IPAM tool it does not load, please have a look at that 🙂
Patch the single jQuery 4 incompatibility ($.camelCase removal) with a native String.replace equivalent. No other library depends on jquery-migrate, so it can be fully removed.
Select2 4.1.0-rc.0 replaced aria-attribute selectors with BEM-style class selectors for option states (selected, highlighted, disabled).
d841aae to
734183c
Compare
|
This bug was not related to this PR specifically, but part of the base upgrade-jquery branch. I fixed it in the base branch and rebased :) Just had to use d3 v7 (and some minor syntax updates) |



Scope and purpose
Follow-up to #3730.
Upgrade select2 to 4.1.0-rc.0 for native jQuery 4 support, removing the jquery-migrate shim. Update select2 CSS selectors for v4.1.0-rc.0.
Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to NAV can be found in the
Hacker's guide to NAV.
<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.