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

Commit

Permalink
fix(ItemGroup): cross mandatory and multiple
Browse files Browse the repository at this point in the history
Signed-off-by: Florian-Schoenherr <florian.schoenherr99@gmail.com>
  • Loading branch information
Florian-Schoenherr committed Mar 4, 2021
1 parent ddba141 commit be16ead
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
select: (val) => {
if (multiple) {
if (value.includes(val)) {
if (!(mandatory && value === 1)) {
if (!mandatory || value.length > 1) {
value.splice(value.indexOf(val), 1);
value = value;
}
Expand Down

1 comment on commit be16ead

@vercel
Copy link

@vercel vercel bot commented on be16ead Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.