Skip to content

Commit 63d2ba3

Browse files
committed
Disallow negative limits (#1550)
1 parent a187932 commit 63d2ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JoinRpg.Web.CharacterGroups/CharacterTypeSelector.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@if (characterType == CharacterTypeView.Slot)
1414
{
1515
<FormRow Label="Лимит персонажей в слоте" Description="Оставьте пустым, чтобы не ограничивать число персонажей, которые могут быть созданы из этого слота.">
16-
<NumberInput @bind-Value="@characterSlotLimit" name="@(Name + ".SlotLimit")" />
16+
<NumberInput @bind-Value="@characterSlotLimit" name="@(Name + ".SlotLimit")" Min="0"/>
1717
</FormRow>
1818
}
1919

0 commit comments

Comments
 (0)