Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit be16ead

Browse files
fix(ItemGroup): cross mandatory and multiple
Signed-off-by: Florian-Schoenherr <[email protected]>
1 parent ddba141 commit be16ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte-materialify/src/components/ItemGroup/ItemGroup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
select: (val) => {
2727
if (multiple) {
2828
if (value.includes(val)) {
29-
if (!(mandatory && value === 1)) {
29+
if (!mandatory || value.length > 1) {
3030
value.splice(value.indexOf(val), 1);
3131
value = value;
3232
}

0 commit comments

Comments
 (0)