Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/pickr.es5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.es5.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/pickr.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pickr.min.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/js/pickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ class Pickr {
const that = this;
requestAnimationFrame((function cb() {

// TODO: Performance issue due to high call-rate?
if (!app.offsetWidth) {
if (!app.offsetWidth && app.parentElement !== opt.container) {
return requestAnimationFrame(cb);
}

Expand Down Expand Up @@ -736,6 +735,11 @@ class Pickr {

if (!this.options.disabled) {
this._root.app.classList.add('visible');
if (!this._ensuredColorSet) {
const {h, s, v, a} = this._color;
this.setHSVA(h, s, v, a, true);
this._ensuredColorSet = true;
}
this._rePositioningPicker();
this._emit('show', this);
}
Expand Down