Skip to content

Commit a5b2c89

Browse files
authored
revert(ImagePreview): do not move dom end of body (#7060)
* refactor: 撤销元素移动防止报错 * chore: bump version 9.12.1
1 parent c6b14dc commit a5b2c89

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup Condition="'$(VisualStudioVersion)' == '17.0'">
4-
<Version>9.12.1-beta02</Version>
4+
<Version>9.12.1</Version>
55
</PropertyGroup>
66

77
<PropertyGroup Condition="'$(VisualStudioVersion)' == '18.0'">
8-
<Version>10.0.0-rc.2.2.2</Version>
8+
<Version>10.0.0-rc.2.2.3</Version>
99
</PropertyGroup>
1010

1111
<ItemGroup>

src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export function init(id, prevList, config) {
1212
viewer: Viewer.init(el, prevList, config)
1313
};
1414
Data.set(id, viewer);
15-
16-
document.body.appendChild(el);
1715
}
1816

1917
export function update(id, prevList) {
@@ -32,6 +30,5 @@ export function dispose(id) {
3230

3331
if (viewer) {
3432
Viewer.dispose(viewer.viewer);
35-
viewer.el.remove();
3633
}
3734
}

0 commit comments

Comments
 (0)