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
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>9.0.3</Version>
<PropertyGroup Condition="'$(VisualStudioVersion)' == '17.0'">
<Version>9.0.4</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(VisualStudioVersion)' == '18.0'">
<Version>10.0.0-rc.2.1.0</Version>
</PropertyGroup>

<PropertyGroup>
<PackageTags>Bootstrap Blazor WebAssembly wasm UI Components Sortable</PackageTags>
<Description>Bootstrap UI components extensions of SortableJS</Description>
</PropertyGroup>

<ItemGroup>
<ItemGroup Condition="'$(VisualStudioVersion)' == '17.0'">
<PackageReference Include="BootstrapBlazor" Version="9.9.1" />
</ItemGroup>

<ItemGroup Condition="'$(VisualStudioVersion)' == '18.0'">
<PackageReference Include="BootstrapBlazor" Version="10.0.0-rc.2.1.0" />
</ItemGroup>

<ItemGroup>
<Using Include="BootstrapBlazor.Components" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const initSortable = (id, element, invoke, op) => {
}

if (op.triggerAdd) {
op.onAdd = event => {
op.onAdd = async event => {
var closestParent = event.from.closest('.bb-sortable');
if (closestParent) {
const items = [];
Expand All @@ -116,7 +116,11 @@ const initSortable = (id, element, invoke, op) => {
else {
items.push({ oldIndex: event.oldIndex, newIndex: event.newIndex, FromId: closestParent.id });
}
invoke.invokeMethodAsync('TriggerAdd', items);

await invoke.invokeMethodAsync('TriggerAdd', items);
if (event.pullMode === 'clone') {
event.item.remove();
}
}
}
}
Expand Down