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

Mobile browser support #20

Open
hitchcockwill opened this issue Sep 17, 2015 · 2 comments
Open

Mobile browser support #20

hitchcockwill opened this issue Sep 17, 2015 · 2 comments

Comments

@hitchcockwill
Copy link

Checkbox does not register a click on mobile Safari or Chrome. Any suggestions for a workaround for this?

Update:
Just did some more digging. It looks like the click event that is bound in the directive is not properly binding on mobile. Note that my app does have ngTouch included.

elem.bind("click", function() {
  console.log('This was clicked') // This never gets logged on mobile
  scope.$apply(function() {
    if(modelCtrl.$modelValue === falseValue) {
      modelCtrl.$setViewValue(trueValue);
    } else {
      modelCtrl.$setViewValue(falseValue);
    }
  });
});
@sebastianha
Copy link
Owner

Thanks for reporting, I will test this as soon I get my hands on a mobile device.

@hitchcockwill
Copy link
Author

Submitted a pull request for this issue: #22

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

No branches or pull requests

2 participants