Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #44 from Spencer-Easton/master
Browse files Browse the repository at this point in the history
Fix 'toLowerCase is not a function' issue
  • Loading branch information
notwaldorf authored Jun 19, 2018
2 parents e681fbe + a868415 commit b899095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paper-swatch-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
// uppercase so uhhh try both.
if (this.color && this.color !== '' &&
this.colorList.indexOf(this.color) === -1 &&
this.colorList.indexOf(this.color.toLowerCase()) === -1) {
this.colorList.indexOf(String(this.color).toLowerCase()) === -1) {
this.color = this.colorList[0];
}
this._updateSize();
Expand Down

0 comments on commit b899095

Please sign in to comment.