diff --git a/src/App.svelte b/src/App.svelte
index 0da109c..d97f7cd 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -22,9 +22,6 @@
Settings go here
{/if}
-
-
-
diff --git a/src/lib/Dropdown/Dropdown.svelte b/src/lib/Dropdown/Dropdown.svelte
index e69de29..b4c8534 100644
--- a/src/lib/Dropdown/Dropdown.svelte
+++ b/src/lib/Dropdown/Dropdown.svelte
@@ -0,0 +1,48 @@
+
+
+
+
+
+ {#if open}
+
+ {#each list as listElem}
+
{handleSelect(listElem)}}>{listElem}
+ {/each}
+
+ {/if}
+
+
+
\ No newline at end of file
diff --git a/src/lib/IntegerInput.svelte b/src/lib/IntegerInput.svelte
index 76d6696..bd1a0f3 100644
--- a/src/lib/IntegerInput.svelte
+++ b/src/lib/IntegerInput.svelte
@@ -13,10 +13,6 @@
function inputInteger(event: Event & {currentTarget: (EventTarget & HTMLInputElement)}) {
let newValue = event.currentTarget.value;
- if (newValue.startsWith("0") && newValue.length > 1) {
- newValue = newValue.slice(1, newValue.length)
- }
-
if (newValue != "" && !isNaN(Number(newValue))) {
value = Number(newValue);
}
@@ -25,17 +21,13 @@
event.currentTarget.value = value.toString();
}
}
- else if (newValue === "") {
- event.currentTarget.value = defaultValue.toString();
- value = defaultValue;
- }
else {
event.currentTarget.value = value.toString();
}
}
-
+