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.

Enhancement request to add data attribute for anchors, forms, etc. to specify no hash changes #1577

Closed
@joelbbagley

Description

@joelbbagley

Currently, it appears that by default in JQM 1.0a4.1, elements such as anchors, forms, etc. that allow page navigation always update the hash and page history navigation unless one explictly captures the click or submit event and then invokes the $.mobile.changePage method themselves specifying that the hash not be updated. It would be quite helpful if a data attribute could be supported that would allow the developer to specify whether they want the hash to be changed for an anchor or form. As an example:

<a id="customButton" name="customButton" href="/some/path" data-change-hash="false" data-role="button">Label</a>

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