From 2c9ef2f087be4954702a01cb7472aaf871699e06 Mon Sep 17 00:00:00 2001 From: Daniel Lowe Date: Mon, 31 Jan 2022 00:07:41 -0500 Subject: [PATCH 1/2] Support more than one instance Binds the necessary DOM nodes for events instead of using selectors. This way, each instance of the color picker is encapsulated and changes won't affect other instances of the component. --- src/HsvPicker.svelte | 102 ++++++++++++++++++++----------------------- 1 file changed, 47 insertions(+), 55 deletions(-) diff --git a/src/HsvPicker.svelte b/src/HsvPicker.svelte index 9e5e1dc..28ce26c 100644 --- a/src/HsvPicker.svelte +++ b/src/HsvPicker.svelte @@ -1,7 +1,16 @@