jQuery.stayInWebApp icon indicating copy to clipboard operation
jQuery.stayInWebApp copied to clipboard

(Bug) Link with Onclick Return Confirm

Open lucianocn opened this issue 10 years ago • 2 comments

I have a link with onclick to confirm the action, with OK and CANCEL option. On any desktop browser (Chrome, Safari...) it works properly, but on iOS WebApp (using jQuery.stayInWebApp) the CANCEL button do the same function as OK.

Example Link:

<a onclick="return confirm('Really want to proceed?')" href="/reservation/cancel/1">Cancel</a>

Any idea to solve it?

lucianocn avatar Mar 06 '14 19:03 lucianocn

What is the specific page with error?

techdude avatar Mar 07 '14 22:03 techdude

You probably need to stop event propagation. If you used a jQuery event handler, you could call event.stopPropagation(). Otherwise, check out how to stop event propagation with inline onclick attribute.

mrmoses avatar Aug 22 '14 12:08 mrmoses