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

Only one dropdown alert displayed at a time #10

Closed
jaredreich opened this issue Feb 25, 2015 · 4 comments
Closed

Only one dropdown alert displayed at a time #10

jaredreich opened this issue Feb 25, 2015 · 4 comments

Comments

@jaredreich
Copy link

Hello, what do you think about implementing an event listener for if the user touches anywhere outside of the dropdown. For example to prevent overlapping of multiple dropdowns if the user presses a button somewhere on the screen that triggers a new dropdown (they could potentially have tons of dropdowns displaying on the screen if the delay was long enough).

Thanks for reading!

  • Jared
@cwRichardKim
Copy link
Owner

shouldn't be too difficult, I'll keep this open until I have some time to build it. If you have the time, feel free to try!

@jaredreich
Copy link
Author

I think the better solution might actually be to allow only one dropdown alert at a time. Like for example if one is showing but still has 5 seconds left, and another one is initiated, then the first one will ignore it's remaining timer, close out with it's normal close animation (slides back up), then the new one will present. What do you think? I'd be glad to try this myself, I'm very new to Git/GitHub though so we'll see how I do. I can try making a pull request if you agree with this thought.

@jaredreich jaredreich changed the title TouchUpOutside event listener Only one dropdown alert displayed at a time Feb 27, 2015
@clsource
Copy link

clsource commented Apr 9, 2015

I solved this issue by calling [RKDropdownAlert dissmissAllAlert] before showing an alert.

@jaredreich
Copy link
Author

Nice, thanks.

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

3 participants