Skip to content

Commit

Permalink
fixed issue with safari rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
atishpatel committed Nov 2, 2016
1 parent 7d4f9b4 commit a72da75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "radio-color-picker",
"version": "1.0.3",
"version": "1.0.4",
"description": "A Polymer color picker that is a list of colors. When a color is selected, a checkmark is applied to the color button.",
"authors": [
"Atish Patel"
Expand Down
5 changes: 4 additions & 1 deletion radio-color-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
as="color">
<div class="color">
<div class="color-circle"
style="background-color:[[color]]"
style$="background-color:[[color]]"
on-tap="_colorTapped">
<iron-icon id="c[[index]]"
hidden
Expand Down Expand Up @@ -130,6 +130,9 @@
}
},
selectColor: function(index) {
if (index < 0) {
return;
}
var newSelectedElement = this.$$('#c' + index);
if (newSelectedElement === undefined || newSelectedElement === null) {
this.async(function() {
Expand Down

0 comments on commit a72da75

Please sign in to comment.