Skip to content

Commit

Permalink
typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tesar-tech authored Oct 7, 2021
1 parent b21e3ed commit 99c9c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DragAndDropList/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}

protected override void OnInitialized()
{//fill names wit "random" string
{//fill names with "random" string
for (var i = 0; i < 10; i++)
{
Model m = new() { Order = i, Name = $"Item {i}" };
Expand All @@ -47,7 +47,7 @@
{//landing model -> where the drop happened
if (draggingModel is null) return;
int originalOrderLanding = landingModel.Order;//keep the original order for later
//increase model uned by 1
//increase model under by 1
Models.Where(x => x.Order >= landingModel.Order).ToList().ForEach(x => x.Order++);
draggingModel.Order = originalOrderLanding;//replace landing model
int ii = 0;
Expand Down

0 comments on commit 99c9c8f

Please sign in to comment.