Hi @Anonymous ,
I have tested with your code and it works well, I think it is a proper way. I'm glad to hear you solve the problem ,if you have any issue about SharePoint, you are welcome to raise a ticket in this forum.
By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
[Disable a row in Quick Edit using jQuery Based on Status Change]
Issue Symptom:
I referred the below article to achieve disable a row in quick edit based on status change.
Its working as per the sample test script but facing an issue while finding items in the search bar “TypeError: Cannot set properties of null (setting 'disabled')”.
Solutions:
Change the code as below:
document.addEventListener("click", myFunction);
sheet.disabled = true;
function myFunction() {
sheet.parentNode.removeChild(sheet);
}
Full code (See attachment)
You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





