Skip to content

Commit

Permalink
Fixes panel not showing with jQuery Slim
Browse files Browse the repository at this point in the history
fixes #267
  • Loading branch information
kdeclerck committed Dec 12, 2018
1 parent f5b0ab6 commit 79ec3ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.minicolors.js
Expand Up @@ -285,7 +285,7 @@
if (settings.show) settings.show.call(input.get(0));
});
} else {
panel.css('opacity', 1);
panel.show();
if (settings.show) settings.show.call(input.get(0));
}
}
Expand All @@ -304,7 +304,7 @@
minicolors.removeClass('minicolors-focus');
});
} else {
panel.css('opacity', 0);
panel.hide();
if (settings.hide) settings.hide.call(input.get(0));
minicolors.removeClass('minicolors-focus');
}
Expand Down

0 comments on commit 79ec3ca

Please sign in to comment.