The49.Maui.BottomSheet
The49.Maui.BottomSheet copied to clipboard
Dismiss() method sometimes doesn't return and disappears
Hi,
I haven't investigated this thoroughly but confirmed with Debug hitting before but not after the Dismiss() call as shown below.
To ensure that no duplicates are created, I do the following test before creating one.
if (bottomSheetPage is not null) await bottomSheetPage.Dismiss();
In some cases the execution never returns to the next line of code and suspect perhaps disappearing to do UI thread issues??
Alternatively, setting bottomSheetPage = null;
works like a breeze.
Just to let you know...
Could you confirm this was observed on Android, iOS or both?
rc1
was release with some re-work around ShowAsync
and DismissAsync
so you might want to give that version a try
Sorry for the very late reply. So far, I tested only on Android.