Skip to content

Commit

Permalink
Fix cleared button if comparison is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed Jun 3, 2019
1 parent 6cb95b3 commit fa467c0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/pickr.es5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.es5.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pickr.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.min.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/js/pickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,11 @@ class Pickr {
inst._updateOutput();
}

// If the user changes the color, remove the cleared icon
_root.button.classList.remove('clear');
if (!inst.options.comparison) {

// If the user changes the color, remove the cleared icon
_root.button.classList.remove('clear');
}
}
}),

Expand Down

0 comments on commit fa467c0

Please sign in to comment.