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

Cannot deselect item with md-checks and others if multiple=false #133

Closed
LexLythius opened this issue Jun 9, 2015 · 0 comments
Closed

Comments

@LexLythius
Copy link

This code:

  setValueSelection(value, select) {
    if (select) {
      return this.addToSelection(value);
    }
    else {
      return this.removeFromSelection(value);
    }
  },
...
  removeFromSelection(value) {
    if (this.get('multiple')) {
      this.get('selection').removeObject(value);
    }
    else {
      throw new Error('removeFromSelection is not supported in single-selection mode');
    }
  },

results in error when unclicking an md-check from md-checks with multiple=false (single-selection).

LexLythius pushed a commit to LexLythius/ember-cli-materialize that referenced this issue Jun 9, 2015
Cannot deselect checks if multiple=false.
mike-north#133
LexLythius pushed a commit to LexLythius/ember-cli-materialize that referenced this issue Jun 10, 2015
mike-north#133
Cannot deselect item with md-checks and others if multiple=false
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