I encountered this issue in compose desktop. I add...
# multiplatform
j
I encountered this issue in compose desktop. I added SelectionContainer to each item in LazyColumn. And after scroll up and down, the error occurred:
Copy code
java.lang.IllegalArgumentException: Another selectable with the id: androidx.compose.foundation.text.selection.MultiWidgetSelectionDelegate@4c3d1aa6.selectableId has already subscribed.
	at androidx.compose.foundation.text.selection.SelectionRegistrarImpl.subscribe(SelectionRegistrarImpl.kt:105)
...
anyone know about this issue?🥲
e
Do you provide a key to the item in the lazy column?
j
nope, I didn’t pass a key
e
I’m not sure about internals of the compose - what does it uses for the default implementation for the key functionality. Might be the item itself. Could it be that you have double items in the list?
And looks like it is the issue with section item
BTW, what is the section container? I never heard about it
j
content in the item like text can be selected and copy if you wrap SelectionContainer to your item