Closed hassanAwanAlvi closed 2 months ago
@hassanAwanAlvi did you check how we do it for our Vue example?
Like this it works for me and the Google Pay sheet is not shown.
I did check, I was doing this but its not working I ama happy to connect and show you more.
@hassanAwanAlvi please share a full reproducer on a site like stackblitz.com
closing due to no activity
Describe the bug A clear and concise description of what the bug is. I am using Vite / Vue and I am trying to preventDefault in google-pay-button's onClick. But I've tried a low of different ways and it seems to have some bug.
To Reproduce Steps to reproduce the behavior:
Expected behavior It should prevent the payment sheet.
Screenshots NA Component information:
@google-pay/button-element
) Component version (e.g. 3.1.0):Environment:
Please don't hesitate to ask me any further questions. Looks like this line has some issues.
const request = this.createLoadPaymentDataRequest(config); try { if (config.onClick) { config.onClick(event); } if (event.defaultPrevented) { return; }