Hello! I have Surface with clickable handler a Text on it. In build-184 when i click on Text, click event propagated to surfsce click handler. In build-211 it is not propagated. What should i do, to keep previous logic?
a
Adam Powell
05/26/2021, 3:30 PM
@matvei
m
matvei
05/26/2021, 3:42 PM
Most probably you are hitting the behaviour change, where
Surface(Modifier.clickable)
doesn't work anymore. This is because we've this version of Surface to consume all clicks behind it (and the Modifier.clickable you set is technically a "behind" case)
You can use new Surface overload with onClick parameter to handle clicks properly
p
PHondogo
05/26/2021, 9:24 PM
Thanks!
r
Richard Robinson
07/05/2021, 6:08 PM
You can use new Surface overload with onClick parameter to handle clicks properly
@matvei which overload is this referring to? I can only find the single