The49.Maui.BottomSheet icon indicating copy to clipboard operation
The49.Maui.BottomSheet copied to clipboard

Dismiss() method sometimes doesn't return and disappears

Open dg2k opened this issue 1 year ago • 2 comments

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...

dg2k avatar May 12 '23 10:05 dg2k

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

paulvarache avatar May 20 '23 15:05 paulvarache

Sorry for the very late reply. So far, I tested only on Android.

dg2k avatar May 24 '23 10:05 dg2k