Skip to content

Commit 95a04d7

Browse files
committed
fix #145
1 parent 6e7188d commit 95a04d7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

exampleVault/Input Fields/Select and Multi Select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
select: 1
2+
select:
33
select2: false
44
select3: 2
55
multiSelect:

src/inputFields/fields/Select/SelectComponent.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
}
1313
1414
function selectOption(option: MBLiteral) {
15-
value = option;
15+
if (value === option) {
16+
value = null;
17+
} else {
18+
value = option;
19+
}
1620
onValueChange(value);
1721
}
1822

0 commit comments

Comments
 (0)