Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectmenu: Remove a call to the deprecated .focus() method #2053

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

bmode
Copy link
Contributor

@bmode bmode commented Feb 17, 2022

updated call to deprecated jQuery .focus() method in selectmenu.js which was triggering a warning from the migrate plugin

replaced call to deprecated jQuery .focus() method with .trigger("focus")
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Feb 17, 2022

CLA Signed

The committers are authorized under a signed CLA.

@fnagel
Copy link
Member

fnagel commented Feb 23, 2022

Looks good to me. What do you think @mgol

We might need to change the commit message (no idea why the PR title looks good though).

@fnagel fnagel requested review from fnagel and mgol February 23, 2022 09:02
@fnagel
Copy link
Member

fnagel commented Feb 23, 2022

@mgol Just for my curiosity: why is the deprecation not mentioned here? https://api.jquery.com/focus/

Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mgol
Copy link
Member

mgol commented Jul 14, 2022

@fnagel we haven't documented event shorthand deprecation yet... It's a bit non-standard as those pages also document the details about specific events which we'd like to keep.

@mgol mgol changed the title Selectmenu: fixed call to deprecated jQuery .focus() method Selectmenu: Remove a call to the deprecated .focus() method Jul 14, 2022
@mgol mgol merged commit 1f467ba into jquery:main Jul 14, 2022
@mgol mgol added this to the 1.13.2 milestone Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants