material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.41k stars 3.08k forks source link

[Standard Bottom Sheet] Clicks pass through standard bottom sheet to the view behind it #4350

Open StellarSand opened 1 month ago

StellarSand commented 1 month ago

Description: When clicking on the standard bottom sheet, it is possible to trigger clickable items on the view behind it.

Steps to reproduce: In the catalog app, expand the standard bottom sheet to full height. Click on the bottom sheet to trigger clickable items from the view behind it like Show Modal BottomSheetDialog and the other switches. Check the video below.

https://github.com/user-attachments/assets/1b23e9ee-f3e0-49c8-bef4-eee7f6b6d3e6

Expected behavior: Clicks don't pass through to the view behind when clicked on standard bottom sheet

Android API version: Any

Material Library version: 1.13.0-alpha-07 1.13.0-alpha-06 1.13.0-alpha-05 1.13.0-alpha-04 1.13.0-alpha-03 1.12.0 And all others

dorianpavetic commented 11 hours ago

Hi, have you tried setting a android:background property on your bottom sheet view ?