Skip to content

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

@Digipom

Description

@Digipom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions