Native javascript prompt alert or confirm bug

Hi,

I've noticed a bug, on iOS safari :
When you use a native javascript window (like prompt, or alert, or confirm), triggered by a "ontap" attribute, the method is called twice :
For example :
http://jsfiddle.net/Ycghd/

If you tap on "Click" button, then the confirm dialog box appears. Whatever you answer, if you tap anywhere in the window, the dialog box shows up again.

I've tried inEvent.preventDefault() and inEvent.stopPropagation(), but none of these seem to work.

Do you have a fix to this?

Thanks

Comments

Sign In or Register to comment.