Skip to content

Commit 1864d72

Browse files
author
Mischa Spelt
committed
Forward deprecated UseBackdrop property to UseStaticBackdrop
1 parent 7cc1765 commit 1864d72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

blazorbootstrap/Components/Offcanvas/Offcanvas.razor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public bool IsVisible
292292
/// Default value is true.
293293
/// </remarks>
294294
[Parameter]
295-
public bool UseBackdrop { get; set; } = true;
295+
public bool UseBackdrop { get => this.UseStaticBackdrop; set => this.UseStaticBackdrop = value; }
296296

297297
/// <summary>
298298
/// When `UseStaticBackdrop` is set to true, the offcanvas will not close when clicking outside of it.
@@ -301,7 +301,7 @@ public bool IsVisible
301301
/// Default value is false.
302302
/// </remarks>
303303
[Parameter]
304-
public bool UseStaticBackdrop { get; set; }
304+
public bool UseStaticBackdrop { get; set; } = true;
305305

306306
#endregion
307307
}

0 commit comments

Comments
 (0)