Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Jetpack Compose version: 1.7.X
Jetpack Compose component(s) used: Material 3
Android Studio Build:
Android Studio Ladybug | 2024.2.1 Patch 2 Build #AI-242.23339.11.2421.12550806, built on October 24, 2024 Kotlin version: 2.0.21
Steps to Reproduce or Code Sample to Reproduce:
When using ModalBottomSheet, if you have something with an
onClick
callback such as the IconButton below, it seems like the resulting touch gestured produced from a performClick operation does not work right, and the callback is never triggered.The workaround i've found is to directly trigger the semantic action via
performSemanticAction(SemanticActions.OnClick)
This is not limited to ModalBottomSheet either. I have more complex cases where people are using a BottomSheetDialogFragment with an embedded ComposeView. That is exhibiting the same behavior where
performClick
does not work butperformSemanticAction
does.