-
-
Notifications
You must be signed in to change notification settings - Fork 741
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
cancel block not called if user taps outside action sheet #531
Comments
After #528 is merged, this issue will be fixed |
I hadn't seen .tapDismissAction in the API, so wasn't using it. I have updated my code to set it to .cancel, but (as I assume you know) I still didn't get notified when the user tapped above the action sheet. Not reported here, the same thing happens in popover mode on an iPad. Let me know if you want me to create a separate issue for the iPad popover problem. |
I confirm: tapDismissAction is not called, if it is not .none. I've tracked it to the fact that when adding gesture recognisers in AbstractActionSheetPicker showActionSheetPicker. _actionSheet.window is always nil, since SWActionSheet window is never called |
@noorulain17 I would be happy to, if you provide me with the instructions how to specify a brunch in Podfile (never done it before) |
@noorulain17 I've tested your branch - the fix works on iPhones, but unfortunately, not on iPads... |
Thanks @Jeepston for your feedback. I'll fix that on iPad too. Give me few days. |
I have the same problem and noticed #528. But it have not been merged when 2 month passed |
The PR is pending, #528 would easily solve it. |
I'm having this issue too has it been fixed |
@hechukwu the fix has been merged to
@skywinder or I will release a new version of the library in a few days |
Thank you |
Didn't seem to work. When I tap outside the action sheet and it dismisses when I try to open it again it doesn't work |
if !pickerIsActive {
|
@noorulain17 I'm using the branch but it's still not working |
@hechukwu thanks for the update. I'll work on this on the weekend. |
@noorulain17 sure thing bro. This is a great tool been using for most of my projects. |
@noorulain17 Thanks for the reply. It seems this issue is not fixed on iPhone or iPad. Please help to fix/merge the code if possible. Thanks! |
Any update on this? thanks. |
Any news? |
Hi @nihilenz, @tflin, please show your PR. P.S. |
I am using an ActionSheetDatePicker with a cancel block on an iPhone. If the user hits the Cancel button, this is called. However, if the user taps outside the the action sheet, the action sheet is hidden, but the cancel block is not executed, so my code doesn't have any (reasonable) way of knowing that the user canceled.
The text was updated successfully, but these errors were encountered: