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 @@
300 300
         this.options = options;
301 301
 
302 302
         $(options.body).off('.tcp').on(_pointerdown, function(e) {
303
-            !_instance.add(_$UI).find(e.target)
304
-                .add(_instance.filter(e.target))[0] && toggle();
303
+            _instance.add(_$UI).add($(_$UI).find(e.target)).
304
+                index(e.target) === -1 && toggle();
305 305
         });
306 306
 
307 307
         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 @@
1 1
 {
2 2
   "name": "tinyColorPicker",
3
-  "version": "1.1.0",
3
+  "version": "1.1.1",
4 4
   "repository": {
5 5
     "type": "git",
6 6
     "url": "http://github.com/PitPik/tinyColorPicker.git"

Loading…
Cancel
Save