NotificationBanner icon indicating copy to clipboard operation
NotificationBanner copied to clipboard

The autoDismiss property disables also dismissing on tap and swipe

Open hasangyulyustan opened this issue 2 years ago • 1 comments

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.

hasangyulyustan avatar Jun 16 '22 07:06 hasangyulyustan

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

JoeSzymanskiFAN avatar Aug 04 '23 14:08 JoeSzymanskiFAN