Skip to content

Commit 58944a1

Browse files
authored
Fix DisplayAlert to properly pass the cancel parameter to DisplayAlertAsync (#31474)
### Description of Change Fixed ArgumentNullException in `Page.DisplayAlert(string title, string message, string accept, string cancel, FlowDirection flowDirection)`. ### Issues Fixed Fixes #31473
2 parents 4c11583 + ca93a87 commit 58944a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/src/Core/Page/Page.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public Task DisplayAlert(string title, string message, string cancel, FlowDirect
350350
/// <inheritdoc cref="DisplayAlertAsync(string, string, string, string, FlowDirection)"/>
351351
[Obsolete("Use DisplayAlertAsync instead")]
352352
public Task<bool> DisplayAlert(string title, string message, string accept, string cancel, FlowDirection flowDirection)
353-
=> DisplayAlertAsync(title, message, accept, null, flowDirection);
353+
=> DisplayAlertAsync(title, message, accept, cancel, flowDirection);
354354

355355
/// <inheritdoc cref="DisplayAlertAsync(string, string, string, string, FlowDirection)"/>
356356
public Task DisplayAlertAsync(string title, string message, string cancel)

0 commit comments

Comments
 (0)