Skip to content

Ajax loading #78

@yudiznilay

Description

@yudiznilay

Scenario
In a page there is select defined with this code

<select>
   <option hidden selected>Choose Option</option>
</select>
<a href="redirect.php">Go to this page</a>
var customSelect = $('select');
// Options for custom Select
jcf.setOptions('Select', {
    wrapNative: false,
    wrapNativeOnMobile: false,
    fakeDropInBody: true
});
jcf.replace(customSelect);
jcf.refresh();

Other options are loaded via ajax. Next to select there is link which redirects to new page

Issue
After selecting a value loaded via ajax and click on the link the page redirects and coming back from that page via browser back button, select doesn't show Choose Option value in the dropdown. Only the JCF tags are generated.

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