Skip to content

[Jetchat] Drawer not opening after double-clicking on the drawer icon #744

@ruben8888

Description

@ruben8888

When we do a quick clicking on the drawer icon, the drawer won't open anymore.

I think the problem is in this part of the code

 val drawerOpen by viewModel.drawerShouldBeOpened.collectAsState()
                    if (drawerOpen) {
                        // Open drawer and reset state in [VM.]
                        LaunchedEffect(Unit) {
                            drawerState.open()
                            viewModel.resetOpenDrawerAction()
                        }
                    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions