the49ltd / The49.Maui.BottomSheet

.NET MAUI library used to display pages as Bottom Sheets
MIT License
331 stars 33 forks source link

Sometimes, the BottomSheet is disappeared and not show again with some reasons.. #131

Open kaykaykim opened 3 months ago

kaykaykim commented 3 months ago

The BottomSheet is disappeared and never show again with tapping double(or tripple) command button very quickly I think, the possibilities of this awkard behavior become true if it's tapped double or tripple with very fast speed intervals. After this error happen..it looks that there's no way to show the BottomSheet again. I have to quit the program.. To be clear, The reproduce the error conditions.. 1) Click to run the [th49 bottomsheet button] 2) The49 bottomSheet is appearing from the bottom side. 3) Before the49 bottomSheet has appeared, click the outside of [the49 bottomsheet button], which is background content page quickly. then, the49 bottomsheet is disappeared( or hided) because of clicking background which is outside the49 button. 4) from this(after it's disappeared), there's no way to show the49 BottomSheet again..

radoczsanyi commented 1 month ago

Same here, and it's really annoying.

What I did for now is I make my command CanExecute flag dependent on the sheet state (shown or hidden). To avoid multiple executions, but this approach I would say isn't 100% reliable due to the fact that some models would react much slower than another.

This lib is really cool, and I'd like to see steps further on this issue.