color-picker icon indicating copy to clipboard operation
color-picker copied to clipboard

Fix picker position/cursor when page has non-fixed position.

Open flamestream opened this issue 7 years ago • 2 comments

This is a solution for #29. The easiest way was to force the placement of the picker to be placed at root child, and adjust origins from there, losing the custom container/bucket feature.

flamestream avatar Feb 03 '18 02:02 flamestream

The script works quite well. Is it possible to place the script in the header of the HTML file? What do you have to change to make it work. At the moment an error is given in line 207 because the parent element cannot be found.

hsm-berlin avatar Jul 20 '22 18:07 hsm-berlin

You need to execute the color picker creation on document ready.

window.addEventListener('DOMContentLoaded', () => {
    // Your code here...
});

taufik-nurrohman avatar Jul 20 '22 23:07 taufik-nurrohman