Skip to content

Commit

Permalink
Cast checkValidity return value to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
pekam committed May 29, 2020
1 parent c67805e commit 8b4b485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vaadin-time-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,9 @@
* @return {boolean} True if the value is valid
*/
checkValidity() {
return this.__inputElement.focusElement.checkValidity() &&
return !!(this.__inputElement.focusElement.checkValidity() &&
(!this.value || this._timeAllowed(this.i18n.parseTime(this.value))) &&
(!this.__dropdownElement.value || this.i18n.parseTime(this.__dropdownElement.value));
(!this.__dropdownElement.value || this.i18n.parseTime(this.__dropdownElement.value)));
}
}

Expand Down

0 comments on commit 8b4b485

Please sign in to comment.