Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
<PackageReference Include="BootstrapBlazor.Region" Version="9.0.8-beta01" />
<PackageReference Include="BootstrapBlazor.SignaturePad" Version="9.0.1" />
<PackageReference Include="BootstrapBlazor.SmilesDrawer" Version="9.0.2" />
<PackageReference Include="BootstrapBlazor.Sortable" Version="9.0.3" />
<PackageReference Include="BootstrapBlazor.Sortable" Version="9.0.4" />
<PackageReference Include="BootstrapBlazor.Splitting" Version="9.0.3" />
<PackageReference Include="BootstrapBlazor.SvgEditor" Version="9.0.4" />
<PackageReference Include="BootstrapBlazor.SummerNote" Version="9.0.7" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
</SortableList>
</div>
<div class="col-12 col-sm-6">
<SortableList Option="_option32">
<SortableList Option="_option32" OnAdd="OnAddClone">
<div class="sl-list row g-2">
@foreach (var item in ItemsCloneRight)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ private Task OnAdd2(SortableEvent @event)
return Task.CompletedTask;
}

private Task OnAddClone(SortableEvent @event)
{
var item = ItemsCloneLeft[@event.OldIndex];
ItemsCloneRight.Insert(@event.NewIndex, new Foo() { Name = item.Name });
return Task.CompletedTask;
}

private Task OnUpdate2(SortableEvent @event)
{
var oldIndex = @event.OldIndex;
Expand Down
Loading