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:
parent
81321faa74
commit
44ffe523b6
@ -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
4
jqColorPicker.min.js
vendored
4
jqColorPicker.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user