compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

SelectionContainer crashed when right click space area

Open Yricky opened this issue 1 year ago • 0 comments

Describe the bug See 'To Reproduce' Affected platforms

  • Desktop (Windows, Linux, macOS)

Versions

  • Libraries:
    • Compose Multiplatform version: 1.6.11
    • Navigation Multiplatform version (for related issues):
    • ...
  • Kotlin version: 1.9.23
  • OS version(s) (required for Desktop and iOS issues):
  • OS architecture (x86 or arm64):
  • Device (model or simulator for iOS issues):
  • JDK (for desktop issues):

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.

Yricky avatar Jun 17 '24 08:06 Yricky