Garrett Coughlin
10/07/2023, 6:01 PMImage(
LibraryIconOptions.SEARCH.url,
modifier = Modifier.onClick {
console.log("Clicked")
}
)
I expect there to be “Clicked” logged in the console when this is clicked on. But nothing happens. onClick works with other UI elements but not with the Image Composable.David Herman
10/07/2023, 6:11 PMGarrett Coughlin
10/07/2023, 6:16 PMDavid Herman
10/07/2023, 6:18 PMGarrett Coughlin
10/07/2023, 6:29 PMImage(
LibraryIconOptions.SEARCH.url,
modifier = Modifier
.cursor(Cursor.Pointer)
.onClick {
console.log("Clicked")
}
)
and then the simple span text
SpanText(
"Search",
modifier = Modifier.cursor(Cursor.Pointer)
)
The span text shows the modified cursor, the image does notDavid Herman
10/07/2023, 6:32 PMGarrett Coughlin
10/07/2023, 6:52 PMDavid Herman
10/07/2023, 6:52 PMGarrett Coughlin
10/07/2023, 9:25 PMDavid Herman
10/07/2023, 10:22 PM