diff --git a/Source/Blazorise/Base/BaseTextInput.razor.cs b/Source/Blazorise/Base/BaseTextInput.razor.cs index 439d3234fe..d94e52962f 100644 --- a/Source/Blazorise/Base/BaseTextInput.razor.cs +++ b/Source/Blazorise/Base/BaseTextInput.razor.cs @@ -54,19 +54,22 @@ protected override ValueTask DisposeAsync( bool disposing ) { ReleaseResources(); } + return base.DisposeAsync( disposing ); } /// /// Shared code to dispose of any internal resources. /// - protected virtual void ReleaseResources() + protected override void ReleaseResources() { if ( inputValueDebouncer != null ) { inputValueDebouncer.Debounced -= OnInputValueDebounced; inputValueDebouncer = null; } + + base.ReleaseResources(); } /// diff --git a/Source/Blazorise/Themes/ThemeGenerator.cs b/Source/Blazorise/Themes/ThemeGenerator.cs index e27d4b216b..b43347781f 100644 --- a/Source/Blazorise/Themes/ThemeGenerator.cs +++ b/Source/Blazorise/Themes/ThemeGenerator.cs @@ -361,6 +361,7 @@ protected virtual void GenerateSidebarVariables( Theme theme, ThemeSidebarOption /// /// Generates the bar component CSS variables. /// + /// Currently used theme options. /// Bar options. protected virtual void GenerateBarVariables( Theme theme, ThemeBarOptions barOptions ) { diff --git a/Source/Extensions/Blazorise.Snackbar/SnackbarStack.razor.cs b/Source/Extensions/Blazorise.Snackbar/SnackbarStack.razor.cs index 11250f2598..a9fbabbe21 100644 --- a/Source/Extensions/Blazorise.Snackbar/SnackbarStack.razor.cs +++ b/Source/Extensions/Blazorise.Snackbar/SnackbarStack.razor.cs @@ -72,7 +72,7 @@ public SnackbarInfo( MarkupString message, private SnackbarStackLocation location = SnackbarStackLocation.Center; - private List snackbarInfos = new(); + private readonly List snackbarInfos = new(); #endregion @@ -120,7 +120,7 @@ public Task PushAsync( MarkupString message, SnackbarColor color = SnackbarColor /// Returns awaitable task. public Task PushAsync( string message, string title = null, SnackbarColor color = SnackbarColor.None, Action options = null ) { - return PushAsync( (MarkupString)message, null, color, options ); + return PushAsync( (MarkupString)message, title, color, options ); } ///