Is there something special one must do to get
SelectionContainer
(The thing that allows one to long press some text to highlight and copy-paste it) working inside a LazyColumn?
I am now doing smth like
SelectionContainer {
LazyColumn() {
items(...) { Text(...) }
}
}
And long pressing just does nothing really.
Replacing
LazyColumn
with
Column(….verticalScroll(…))
just works without any chages.
Tried also to add the
SelectionContainer
per-item in the Lazy list, with no luck either. Since maybe it doesn’t work for lazy layouts as some things which are highlighted may just go out of scope and get removed from composition at any point.
Currently on latest
BOM 2023.10.01
I am asking just to get a sanity check that it’s not just me, if it’s a known issue etc. otherwise will file a bug report.