We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fce90c commit 03d5adcCopy full SHA for 03d5adc
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "svelte-knobs",
3
- "description": "Svelte component library for building customizable knob controls.",
4
- "version": "0.0.1",
+ "description": "Svelte component library for building customizable knob controls.",
+ "version": "0.0.2",
5
"repository": {
6
"url": "https://github.com/eye-wave/svelte-knobs"
7
},
src/lib/Knob.svelte
@@ -37,6 +37,7 @@
37
// preventing the user from selecting that value
38
function completeFixedSnapValues(snapValues: number[]) {
39
if (param.type === 'enum-param') return [];
40
+ if (snapValues.length < 1) return [];
41
42
const { min: start, max: end } = param.range;
43
const clone = [...snapValues];
0 commit comments