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

AlertDialog does not reset its scroll position on subsequent shows #2488

Open
Digipom opened this issue Dec 18, 2024 · 0 comments
Open

AlertDialog does not reset its scroll position on subsequent shows #2488

Digipom opened this issue Dec 18, 2024 · 0 comments

Comments

@Digipom
Copy link

Digipom commented Dec 18, 2024

Issue description:

  1. Have an alert dialog with scrollable content:
AlertDialog(
        showDialog = showDialog,
        title = "Title",
        onDismiss = onDismissRequest,
    ) {
            repeat(25) { rowIdx ->
                item {
                    Text(rowIdx.toString())
                }
            }          
        }
  1. Enter the alert dialog and scroll down.
  2. Swipe back to the previous screen.
  3. Show the alert dialog again.

Expected result:

The alert dialog scroll position should be at the top.

Actual result:

The alert dialog remembers the previous scroll position.

Dependency:

horologist-compose-material:0.6.21

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

No branches or pull requests

1 participant