Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
StellarSand opened this issue Oct 19, 2024 · 4 comments · May be fixed by #4351
Open

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

StellarSand opened this issue Oct 19, 2024 · 4 comments · May be fixed by #4351

Comments

@StellarSand
Copy link

StellarSand commented Oct 19, 2024

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.

bottom_sheet_issue.mp4

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
Copy link

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

@StellarSand
Copy link
Author

Nope, setting android:background property is not required.

@manabu-nakamura
Copy link
Contributor

Workaround: add android:clickable="true" to the standard bottom sheet.

@manabu-nakamura
Copy link
Contributor

See also: 2ebf28f, 2a0dda8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants