How to clear selected rows in Lightning DataTable?

I have a lightning datatable where I am displaying leads.

Once I selected the rows that I wanted and completed the action, I noticed that the checkboxes are not getting unchecked.

Here is what I added to the action method to make sure that the checkboxes will be unchecked after the action is completed.

Hope it helps 🙂

Comments

(2 Comments)

  • Satya

    How to prevent user from selecting a checkbox in lightning data-table if certain condition does not meet.

    • Satya

      I have figured it out.

  • Your email address will not be published. Required fields are marked *