select2 / select2/select2

Compatibility issues with latest jQuery 3.5.1

Open
#5,996 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

4.x compatibility confirmed bug feature: search
Dominant language
JavaScript
Stars
25.9k
Forks
6.1k
Avg merge
8d 53m
Merged PRs (30d)
4

Description

WordPress 5.7 is changing from jQuery version 1.12.4 to jQuery 3.5.1!
We are using Select2.js for a few of our plugins. There are few deprecated methods stated by WordPress in Select2.js.

here is a list of those -

isFunction()
bind() -> https://api.jquery.com/bind/#bind-eventType-eventData-handler
trim() -> https://api.jquery.com/jQuery.trim/#jQuery-trim-str
focus()

I can see the isFunction() is changed in your recent beta update. Looking forward to the compatibility update.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching the Select2.js codebase for the listed deprecated jQuery methods and review the recent beta change for isFunction(). Compare the remaining usage with jQuery 3.5.1 and WordPress 5.7 compatibility expectations; done means the reported deprecated-method issues are addressed and compatibility is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.