I've had the same issue; the only thing that worked for me was setting the max-row-selection property to 0 and then back to the default number within the javascript like this:
I have also faced the same issue and I found the solution by setting the selectedRows property of datatable. If you have selected rows in datatable and later you want to clear that then you can do this like below
Review below examples.
http://sfdchelper.com/how-to-clear-selected-rows-in-lightning-datatable/
https://salesforce.stackexchange.com/questions/200436/lightningdatatable-clear-row-selections
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
https://santhaldisom.in/
https://currentsarkarijobs.com/
I've had the same issue; the only thing that worked for me was setting the max-row-selection property to 0 and then back to the default number within the javascript like this:
this.template.querySelector('lightning-datatable').maxRowSelection=0;
this.template.querySelector('lightning-datatable').maxRowSelection=5;
This will clear all row selections for you.
Hi
I have also faced the same issue and I found the solution by setting the selectedRows property of datatable. If you have selected rows in datatable and later you want to clear that then you can do this like below
this.template.querySelector('lightning-datatable').selectedRows=[];
https://santhaldisom.in/edi-full-form/