Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

popup opens for a second then immediately closes when opening a popup from the pageshow event. #5794

@MartyBJones

Description

@MartyBJones

I noticed that if I load a popup from the pageshow event it opens for a second then immediately closes. I see this issue on the Iphone 4s, Safari browser on laptop, and in Chrome. This issue does not occur in Firefox. I did notice that the problem does not occur if I don't disable popup history. This works fine in Jquery Mobile 1.2 but is broken in Jquery Mobile 1.3.

I see that another user is having the same issue (5775). I borrowed their script http://jsbin.com/onuduw/5/edit to reproduce the issue.

Here is my init section:

$(document).bind( "mobileinit", function(){
$.mobile.popup.prototype.options.history = true;
});

If it set this property to false then the popup stops working correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions