Browse Source

fixes close behavior

fixes closing colorPicker when touching UI
tags/1.1.1
peterd 3 years ago
parent
commit
44ffe523b6
4 changed files with 6 additions and 6 deletions
  1. 2
    2
      jqColorPicker.js
  2. 1
    1
      jqColorPicker.js.map
  3. 2
    2
      jqColorPicker.min.js
  4. 1
    1
      package.json

+ 2
- 2
jqColorPicker.js View File

@@ -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) {

+ 1
- 1
jqColorPicker.js.map
File diff suppressed because it is too large
View File


+ 2
- 2
jqColorPicker.min.js
File diff suppressed because it is too large
View File


+ 1
- 1
package.json View File

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

Loading…
Cancel
Save