xiaoluoboding / vue-sonner

🔔 An opinionated toast component for Vue.

Home Page:https://vue-sonner.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toast with type action don't work on mobile

SiiLuu opened this issue · comments

Hello,

I'm currently working with vue-sonner for handling my toast notifications. I've encountered an issue when using a toast in the following manner:

toast.success('Card added!', {
  action: {
    label: 'Close',
    onClick: () => { console.log("yes") },
  },
})

The onClick event is not getting triggered on mobile devices. This issue persists both in a simulator with touchscreen capabilities and on an actual iPhone.

@SiiLuu it should be fixed in the new release