Skip to content

Conversation

ericsoderberghp
Copy link
Contributor

What does this PR do?

Changed DataTable to fix an issue with disabled rows and lazy loading.

Where should the reviewer start?

anywhere

What testing has been done on this PR?

Hand crafted a story to align with the description in the issue. To reproduce it requires:

  • pagination controlled by the caller
  • lazy loading of data
  • disabled property presence
  • onClick property
  • interacting with the last row after changing the page but before the next page's data is set and the next page has fewer data items than the previous page

How should this be manually tested?

^^^

Do Jest tests follow these best practices?

no test changes, hard to build this in jest

Any background context you want to provide?

What are the relevant issues?

#6703

Screenshots (if appropriate)

Do the grommet docs need to be updated?

no

Should this PR be mentioned in the release notes?

yes

Is this change backwards compatible or is it a breaking change?

backwards compatible

Copy link
Contributor

@JCoder121 JCoder121 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Collaborator

@MikeKingdom MikeKingdom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ericsoderberghp ericsoderberghp merged commit 20936f0 into master Mar 27, 2023
@ericsoderberghp ericsoderberghp deleted the fix/datatable-disabled branch March 27, 2023 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Datatable with disable property throws error when user navigates within table page & clicks row immediately
3 participants