sefianecho / alwan

A simple, lightweight, customizable, touch friendly color picker, written in vanilla javascript with zero dependencies.
https://sefianecho.github.io/alwan/
MIT License
39 stars 6 forks source link

`destroy()` method removes reference element when `preset` option is `false` #13

Closed mpaperno closed 10 months ago

mpaperno commented 10 months ago

Expected behavior: The original reference element is not removed since Alwan didn't create it.

https://jsfiddle.net/s2qnjofv/2/

Thanks, -Max

sefianecho commented 10 months ago

The issue is fixed.