Default rows selected in datatables #754
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Hi, I tried to pass a default selected rows to datatables and doesn't work never. I found an error in your datatables component because you are comparing two objects (array item of the [(selected)] attribute with all the object of [value] attribute). It is impossible, see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#A_model_for_understanding_equality_comparisons.
I solved this with string comparisons with the help of JSON.stringify.
I created a pull request with this change: #753
The text was updated successfully, but these errors were encountered: