Skip to content
This repository has been 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 opened this issue May 6, 2011 · 1 comment

Comments

@joelbbagley
Copy link

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>
@toddparker
Copy link
Contributor

Can you please add this to the feature request wiki and link to this issue? We'll re-open if we decide to implement later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants