fix: update datatable fields for select all bug #1446
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the current state of
Datatable
components with theisSelectable
attribute enabled along with attributeSelectionStatusComponent={DataTable.ControlledSelectionStatus}
there is a bug that when a table is filtered, all the items of the filtered component is selected, and the filter removed, the table selects all components from the unfiltered state despite only being selected in the filtered state.This is due to the field
isEntireTableSelected
being set to true when a datatable is filtered and all fields are selected in the filtered state, but retains that value after removing the filter. On the Paragon documentation site, this is not indicative of default behavior, whereisEntireTableSelected
returns tofalse
after removing the filter.Screen.Recording.2025-03-13.at.10.48.43.AM.mov
Note: Some formatting of the imports may have occured due to my IDEs habit of alphabetizing multiple imports on files modified or visited
For all changes
Only if submitting a visual change