Skip to content

fix(*): replacing deprecated jQuery calls#2274

Merged
ChronosSF merged 8 commits intomasterfrom
sstoychev/fix-deprecated-funcs-24.2
Feb 28, 2025
Merged

fix(*): replacing deprecated jQuery calls#2274
ChronosSF merged 8 commits intomasterfrom
sstoychev/fix-deprecated-funcs-24.2

Conversation

@ChronosSF
Copy link
Member

Closes #ISSUE_NUMBER

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

@ChronosSF ChronosSF changed the title fix(*): removing the use of deprecated isFunction fix(*): replacing deprecated jQuery calls Feb 28, 2025
@ChronosSF ChronosSF requested a review from kdinev February 28, 2025 13:22
this.element.addClass("ui-disabled");
} else {
this.handles.removeAttr("disabled");
this.handles[0].removeAttribute("disabled");
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed if attr() is still supported?

Copy link
Member Author

Choose a reason for hiding this comment

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

Apparently removeAttr should no longer be used when handling boolean attributes. It's being reported by jQuery migrate.

For tags that understand e.g. disabled (such as input), we could use removeProp which is the suggested way but in our code we freely use these on divs and such and removeProp actually sets them to false . (yeah it's a mess)

@ChronosSF ChronosSF merged commit d26de79 into master Feb 28, 2025
4 checks passed
@ChronosSF ChronosSF deleted the sstoychev/fix-deprecated-funcs-24.2 branch February 28, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants