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

Custom validator is not considered #18

Closed
flec opened this issue Feb 29, 2016 · 0 comments
Closed

Custom validator is not considered #18

flec opened this issue Feb 29, 2016 · 0 comments

Comments

@flec
Copy link

flec commented Feb 29, 2016

Shouldn’t the _getValidity method look like this to consider custom validators?

    _getValidity: function(value) {
      if (this.hasValidator()) {
        return this._validator.validate(value);
      }
      return this.disabled || !this.required || this.checked;
    }

https://github.com/PolymerElements/iron-checked-element-behavior/blob/master/iron-checked-element-behavior.html#L80-L82

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

1 participant