Skip to content
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

reset datasource range on ui remount #1199

Merged
merged 1 commit into from
Feb 16, 2024
Merged

reset datasource range on ui remount #1199

merged 1 commit into from
Feb 16, 2024

Conversation

heswell
Copy link
Contributor

@heswell heswell commented Feb 15, 2024

The UI Table does not currently maintain scroll position across remount. So, if table is rendered in tabbed display and user switches to another tab, then switches back, if the user had previously scrolled away from top of table, scroll position would now be reset to top.
The dataSource DOES currently remember the viewport position, so on remount we need to reset it to top of dataset.
ALternatively (and probably better) we could restore the scroll position. Thats a bit more involved, though, so current fix will do for now.

Copy link

netlify bot commented Feb 15, 2024

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit 88662c6
🔍 Latest deploy log https://app.netlify.com/sites/papaya-valkyrie-395400/deploys/65ce2791c210fd0009c93236

@heswell heswell force-pushed the reset-range-on-mount branch from 0ae5de9 to 88662c6 Compare February 15, 2024 15:02
@heswell heswell requested a review from junaidzm13 February 15, 2024 15:03
@heswell heswell merged commit 8d5bed4 into main Feb 16, 2024
16 checks passed
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.

2 participants