2
0
mirror of https://github.com/PitPik/tinyColorPicker synced 2025-06-28 05:31:07 -06:00

fixes close behavior

fixes closing colorPicker when touching UI
This commit is contained in:
peterd 2016-07-15 17:17:34 +02:00
parent 81321faa74
commit 44ffe523b6
4 changed files with 6 additions and 6 deletions

View File

@ -300,8 +300,8 @@
this.options = options; this.options = options;
$(options.body).off('.tcp').on(_pointerdown, function(e) { $(options.body).off('.tcp').on(_pointerdown, function(e) {
!_instance.add(_$UI).find(e.target) _instance.add(_$UI).add($(_$UI).find(e.target)).
.add(_instance.filter(e.target))[0] && toggle(); index(e.target) === -1 && toggle();
}); });
return this.on('focusin.tcp click.tcp', function(event) { return this.on('focusin.tcp click.tcp', function(event) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{ {
"name": "tinyColorPicker", "name": "tinyColorPicker",
"version": "1.1.0", "version": "1.1.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "http://github.com/PitPik/tinyColorPicker.git" "url": "http://github.com/PitPik/tinyColorPicker.git"