Skip to content

Commit

Permalink
fixes close behavior
Browse files Browse the repository at this point in the history
fixes closing colorPicker when touching UI
  • Loading branch information
PitPik committed Jul 15, 2016
1 parent 81321fa commit 44ffe52
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jqColorPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@
this.options = options;

$(options.body).off('.tcp').on(_pointerdown, function(e) {
!_instance.add(_$UI).find(e.target)
.add(_instance.filter(e.target))[0] && toggle();
_instance.add(_$UI).add($(_$UI).find(e.target)).
index(e.target) === -1 && toggle();
});

return this.on('focusin.tcp click.tcp', function(event) {
Expand Down
2 changes: 1 addition & 1 deletion jqColorPicker.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 44ffe52

Please sign in to comment.