Skip to content

Commit

Permalink
SnackbarInfo Initialize IntervalBeforeClose correctly (#5313)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Moreira authored Feb 16, 2024
1 parent 701bc1b commit 8a6e253
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Extensions/Blazorise.Snackbar/SnackbarStack.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public SnackbarInfo( MarkupString message,
ShowActionButton = showActionButton;
ActionButtonText = actionButtonText;
ActionButtonIcon = actionButtonIcon;
IntervalBeforeClose = intervalBeforeClose + animationDuration;
IntervalBeforeClose = intervalBeforeClose is null
? null
: intervalBeforeClose + ( animationDuration ?? 0 );
AnimationDuration = animationDuration;
Multiline = multiline;
}
Expand Down

0 comments on commit 8a6e253

Please sign in to comment.