Skip to content

Commit 73fd55e

Browse files
authored
PDF Viewer JS call issue fixed. (#547)
* PDF Viewer JS call issue fixed. * 1.11.1 updates * README - images fixed
1 parent 7c3c889 commit 73fd55e

20 files changed

+51
-19
lines changed

BlazorBootstrap.Demo.Hosted/Client/wwwroot/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.11.0",
2+
"version": "1.11.1",
33
"release": {
44
"short_description": "New PDF Viewer, Range Input and Script Loader components!!!"
55
},

BlazorBootstrap.Demo.Server/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
},
88
"AllowedHosts": "*",
9-
"version": "1.11.0",
9+
"version": "1.11.1",
1010
"release": {
1111
"short_description": "New PDF Viewer, Range Input and Script Loader components!!!"
1212
},

BlazorBootstrap.Demo.WebAssembly/wwwroot/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.11.0",
2+
"version": "1.11.1",
33
"release": {
44
"short_description": "New PDF Viewer, Range Input and Script Loader components!!!"
55
},

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
## Install
3737

38-
Install with [NuGet](https://www.nuget.org/): `Install-Package Blazor.Bootstrap -Version 1.11.0`
38+
Install with [NuGet](https://www.nuget.org/): `Install-Package Blazor.Bootstrap -Version 1.11.1`
3939

4040
## Install Blazor Bootstrap templates
4141

@@ -160,7 +160,7 @@ Blazor Bootstrap's documentation, which is included in this repository's root di
160160
![Blazor Bootstrap - Progress](https://i.imgur.com/MK142lQ.png "Blazor Bootstrap - Progress")
161161

162162
### Blazor Bootstrap - Range Input
163-
![Blazor Bootstrap - Range Input](https://i.imgur.com/iUNBkki.png "Blazor Bootstrap - Range Input")
163+
![Blazor Bootstrap - Range Input](https://i.imgur.com/rWDDHaf.png "Blazor Bootstrap - Range Input")
164164

165165
### Blazor Bootstrap - Script Loader
166166
![Blazor Bootstrap - Script Loader](https://i.imgur.com/sBiYPeQ.png "Blazor Bootstrap - Script Loader")

blazorbootstrap/BlazorBootstrap.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44

55
<PackageId>Blazor.Bootstrap</PackageId>
6-
<Version>1.11.0</Version>
7-
<PackageVersion>1.11.0</PackageVersion>
6+
<Version>1.11.1</Version>
7+
<PackageVersion>1.11.1</PackageVersion>
88

99
<!--<PackageIconUrl></PackageIconUrl>-->
1010
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

blazorbootstrap/Components/Base/BlazorBootstrapComponentBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public abstract class BlazorBootstrapComponentBase : ComponentBase, IDisposable,
3434
/// <summary>
3535
/// Initializes a new instance of the <see cref="BlazorBootstrapComponentBase" /> class.
3636
/// </summary>
37+
#pragma warning disable CS8618
3738
public BlazorBootstrapComponentBase()
39+
#pragma warning restore CS8618
3840
{
3941
ClassBuilder = new CssClassBuilder(BuildClasses);
4042
StyleBuilder = new CssStyleBuilder(BuildStyles);

blazorbootstrap/Components/PdfViewer/PdfViewer.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ public partial class PdfViewer : BlazorBootstrapComponentBase
2626
protected override async Task OnInitializedAsync()
2727
{
2828
objRef ??= DotNetObjectReference.Create(this);
29-
await PdfViewerJsInterop.InitializeAsync(objRef!, ElementId!, scale, rotation, Url!);
3029
await base.OnInitializedAsync();
30+
31+
ExecuteAfterRender(async () => await PdfViewerJsInterop.InitializeAsync(objRef!, ElementId!, scale, rotation, Url!));
3132
}
3233

3334
[JSInvokable]

blazorbootstrap/Models/Charts/ChartOptions/ChartOptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public class Interaction
5858

5959
#region Constructors
6060

61+
#pragma warning disable CS8618
6162
public Interaction()
63+
#pragma warning restore CS8618
6264
{
6365
Mode = InteractionMode.Nearest;
6466
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Blazor Bootstrap v1.11.1
3+
authors:
4+
name: Vikram Reddy
5+
title: Creator
6+
url: https://github.com/gvreddy04
7+
image_url: https://avatars.githubusercontent.com/u/2337067
8+
tags: [v1.11.1, blazor, bootstrap, bootstrap5, blazorbootstrap, pdfviewer]
9+
---
10+
11+
We are excited to release 1.11.1 with PDF Viewer updates!!!
12+
13+
![image](https://i.imgur.com/7Vz9Efi.png "Blazor Bootstrap: PDF Viewer Component")
14+
15+
<!--truncate-->
16+
17+
## What's changed
18+
19+
- We have made improvements to the base components
20+
21+
- `PDF Viewer` component
22+
- PDF Viewer JS call issue fixed. [#547](https://github.com/vikramlearning/blazorbootstrap/pull/547)
23+
24+
## Links
25+
- [Demo Website - Blazor Server](https://demos.blazorbootstrap.com/)
26+
- [Demo Website - Blazor WebAssembly](https://demos.getblazorbootstrap.com/)
27+
- [Blazor Chart Components Documentation](https://getblazorbootstrap.com/docs/components/charts)

docs/docs/01-getting-started/01-a-getting-started-webassembly-NET-8.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Get started with the Enterprise-class Blazor Bootstrap Component library built o
1818
Looking to quickly add **Blazor Bootstrap** to your project? Use NuGet package manager.
1919

2020
```shell
21-
Install-Package Blazor.Bootstrap -Version 1.11.0
21+
Install-Package Blazor.Bootstrap -Version 1.11.1
2222
```
2323

2424
## Add CSS references

0 commit comments

Comments
 (0)