-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add scrollTopOnPagination property to Table #22115
Conversation
Codecov Report
@@ Coverage Diff @@
## master #22115 +/- ##
===========================================
- Coverage 67.12% 55.84% -11.28%
===========================================
Files 1831 1831
Lines 69994 70008 +14
Branches 7570 7572 +2
===========================================
- Hits 46984 39098 -7886
- Misses 21045 28951 +7906
+ Partials 1965 1959 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -49,6 +49,7 @@ export interface TableViewProps { | |||
isPaginationSticky?: boolean; | |||
showRowCount?: boolean; | |||
scrollTable?: boolean; | |||
scrollTopOnPagination?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should even expose a property to configure this behavior. My fear is that we would allow different behaviors throughout the app. We could follow the same approach we did with the Select component and not expose this property until a valid use case appears. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree @michael-s-molina that this should be a standard behaviour. However, I believe it makes more sense to validate that for the new component being built by @eric-briscoe rather than changing all the tables right now which may cause unwanted behaviours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/testenv up FEATURE_DRILL_TO_DETAIL=true FEATURE_DASHBOARD_CROSS_FILTERS=true |
@jinghua-qa Ephemeral environment spinning up at http://54.200.198.12:8080. Credentials are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Fixes an issue for the Drill to detail modal which wasn't scrolling back up on pagination. It does so by adding a new property to the table component called
scrollTopOnPagination
.AFTER
Supported.Charts.Dashboard.1.mp4
TESTING INSTRUCTIONS
DRILL_TO_DETAIL
feature flag to TrueADDITIONAL INFORMATION