Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kaykaykim opened this issue Aug 19, 2024 · 2 comments

Comments

@kaykaykim
Copy link

kaykaykim commented Aug 19, 2024

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
Copy link

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.

@radoczsanyi
Copy link

radoczsanyi commented Dec 4, 2024

await MainThread.InvokeOnMainThreadAsync(async () => await Current.DismissAsync(false));

Finally I am able to Dismiss from both code and UI, without any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants