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

The autoDismiss property disables also dismissing on tap and swipe #386

Open
hasangyulyustan opened this issue Jun 16, 2022 · 1 comment

Comments

@hasangyulyustan
Copy link

The autoDismiss property disables also dismissing on tap and swipe. It would be better to have option to have infinite banner which will be dismissible on tap or swipe.

@JoeSzymanskiFAN
Copy link

I hit this issue previously and in looking at the code, realized that you can restore the expected behavior, you just have to do it manually:

        banner.autoDismiss = false
        // autoDismiss = true implicitly disables user initiated dismissing, so those actions need to be
        // explicitly re-enabled to work as expected.
        banner.dismissOnTap = true
        banner.dismissOnSwipeUp = true

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