compose-multiplatform
compose-multiplatform copied to clipboard
`SelectionContainer` can't show options menu on iOS
Describe the bug
SelectionContainer can't show options menu on iOS
Affected platforms Select one of the platforms below:
- iOS
Versions
- Kotlin version*: 1.9.22
- Compose Multiplatform version*: 1.6.0-rc02
To Reproduce
When long pressing SelectionContainer, the options menu can't be shown , like Copy ...
SelectionContainer {
Text(text = "Hello World!")
}
Expected behavior
Show options menu like Android
Screenshots
It is not reproduced in version 1.6.0-alpha01, but is reproduced starting from version 1.6.0-beta01.
@bonamanada jfyi 1.6.0-alpha01 is 1.5.x + WASM, it doesn't contain actual 1.6 changes
@dima-avdeev-jb @mazunin-v-jb I am seeing this on compose 1.6.1 -- this is a pretty serious regression. Is there an ETA for a fix?
Should be included in the next release (1.6.10)
@mazunin-v-jb I just tested 1.6.10-beta01 and still seeing the issue fwiw.
@brendanw beta01 doesn't contain that fix, please wait for the beta02
@mazunin-v-jb beta2 has fixed this issue, but there are still two issues:
- When using
SelectionContainerwithText, the keyboard will be shown
SelectionContainer {
Text(text = "Hello World!")
}
- When using
SelectionContainerwithColumnorRow, scrollingColumnleads to the selected text cursor being lost
Column(Modifier.fillMaxSize().verticalScroll(rememberScrollState())) {
SelectionContainer {
Text(
text = (0..300).fold("") { text, _ ->
text + "Hello World!"
},
)
}
}
I am also seeing the same two issues as @robxyy on beta02
@robxyy Thanks for describing problems! Since these two problems are not related to options menu, I decided to move them out into separate issues: (iOS) Selection Container shows keyboard while selecting text and Dragging to scroll clears selection.