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

bug([MatCheckbox]): MatCheckbox doesn't check on mobile in certain conditions #19466

Closed
KyleAlanDavis opened this issue May 27, 2020 · 6 comments
Labels
area: material/checkbox cannot reproduce The team is unable to reproduce this issue with the information provided
Projects

Comments

@KyleAlanDavis
Copy link

KyleAlanDavis commented May 27, 2020

Reproduction

Resubmitting #17146, as noted on that issue.

I am not able to reproduce this on stackblitz, only in my current project.

When the viewing the page in mobile, clicking on the checkboxes causes the ripple effect on the background but does not check the checkbox. The regular html checkbox below it is able to be checked just fine.

Inspection of the event is showing that the event.isTrusted = false. I think that is the issue, but have no idea how it is happening.

To see the issue on a mobile device:

  1. Open https://test.aryv.com/checkbox-test or https://aryv.com/checkbox-test (US only)
  2. Click on the checkbox

To see the issue on Windows Chrome:

  1. Open dev tools and set the tab to a mobile device.
  2. Open https://test.aryv.com/checkbox-test or https://aryv.com/checkbox-test (US only) The tab must be in a mobile view before loading the page to see the issue or you can reload the page after setting it to mobile view.
  3. Click the checkbox

Expected Behavior

The checkbox should be checked.

Actual Behavior

The ripple effect displays but the checkbox is not checked.

Environment

Since the last report, our project has been upgraded to v9.

  • Angular: 7.2.8, 8.2.7, 9.1.0
  • CDK/Material: 7.2, 8.2, 9.2
  • Browser(s): Chrome, iOS Safari
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows, Android, iOS
@KyleAlanDavis KyleAlanDavis added the needs triage This issue needs to be triaged by the team label May 27, 2020
@devversion
Copy link
Member

@KyleAlanDavis Thanks for resubmitting. The reproduction does not work for me. I always get a 403 forbidden status response. It sounds slightly surprising that the problem you're describing only surfaces in your project, but not in a StackBlitz.

@devversion devversion added area: material/checkbox cannot reproduce The team is unable to reproduce this issue with the information provided and removed needs triage This issue needs to be triaged by the team labels May 28, 2020
@devversion devversion added this to Triaged in triage #1 via automation May 28, 2020
@KyleAlanDavis
Copy link
Author

@devversion Apologies, the site was only accessible to USA ipaddresses. I've gotten them to open up the test site, so https://test.aryv.com/checkbox-test should work everywhere.

@devversion
Copy link
Member

devversion commented Jul 14, 2020

@KyleAlanDavis Thanks for figuring that out. I can now load the page, but the app does not run as there are some errors in my browser (e.g. when loading the bundles). Looks like those are served from a CDN that blocks my country (GER)

It would be great to have this in a standalone StackBlitz, but you mentioned that you weren't able to see this there. This makes me wonder if it is something specific in your application that is not necessarily related to our checkbox.

@psamim
Copy link

psamim commented May 30, 2021

I have the exact same problem in my code.

@BobDankert
Copy link

I have the exact same problem in my code.

Are you using AngularJS? That is what was causing our issue (@KyleAlanDavis and myself), details here: #20725

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: material/checkbox cannot reproduce The team is unable to reproduce this issue with the information provided
Projects
No open projects
triage #1
  
Triaged
Development

No branches or pull requests

4 participants