JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.27k stars 1.18k forks source link

SelectionContainer crashed when right click space area #4985

Closed Yricky closed 3 months ago

Yricky commented 5 months ago

Describe the bug See 'To Reproduce' Affected platforms

Versions

To Reproduce Steps to reproduce the behavior:

  1. Run this code snippet:
    @Composable
    fun BugReproduction() {
        SelectionContainer {
            Text("aaaa",Modifier.background(androidx.compose.ui.graphics.Color.White).padding(40.dp))
        }
    }
  2. Right click on space area
  3. See error

Expected behavior No action instead of crash occuring

Screenshots If applicable, add screenshots to help explain your problem.

截屏2024-06-17 16 18 35 截屏2024-06-17 16 14 12

Additional context Add any other context about the problem here.

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.