Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Close icon of dialog doesn't work with $.mobile.defaultDialogTransition set to "none" #3351
Due to performance issue I set transition to none.
And there's problem on my Android device 2.3.6 when I use close icon (X) to close the dialog, the dialog will close, but it will re-open again.
I am able to reproduce this on iOS5 with this code: http://jsbin.com/ebofab/
I had a similar issue in a web site I am making. It's because the close dialog uses the virtual mouse click "vclick" rather than the normal "click" event. Essentially your tap is being placed on the close button and the thing that opens the dialog at the same time.
The reason removing $.mobile.defaultDialogTransition = "none"; works is because the dialog doesn't immediately disappear.
Going to make a pull request switching the close button from using vclick to click.