Before I explain the issue let me tell you I am clearly aware that jQuery removeProp should not be used on native properties such as disabled, checked and selected. https://api.jquery.com/removeProp/
We upgraded the jQuery from 1.12.3 to 3.6.0. We used the JQuery migrate plug-in to identify compatibility issues and fix all the warnings generated in console.
$(“#x”).removeProp(“disabled”)
did work in 1.12.3 and stopped working after upgrading to latest version. But we were not able to identify the issue unless we tested the pages manually. I want to know why jQuery migrate plug-in did not give us a warning regarding the same.
I know we used it wrongly before and we are happy to correct it to $(“#x”).prop(“disabled”,false)
This is an explanation, by Timmy Willison from jQuery Core Team in this bug report https://github.com/jquery/jquery/issues/4887
The issue raised resulted in the change in the documentation of
.removeProp()
. https://github.com/jquery/api.jquery.com/pull/1189