xiaoluoboding / vue-sonner

🔔 An opinionated toast component for Vue.
https://vue-sonner.vercel.app
MIT License
763 stars 41 forks source link

Toast with type action don't work on mobile #37

Open SiiLuu opened 8 months ago

SiiLuu commented 8 months ago

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.

sadeghbarati commented 5 months ago

@SiiLuu it should be fixed in the new release