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
When a dialog close button is clicked over a page header button, it clicks that too #1986
I have a multi-page app with headers like so:
<div data-role="header" data-theme="b"> <a href="#home" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-left jqm-home">Home</a>--> <h1>My App</h1> <a href="#settings" data-icon="gear" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Settings</a> </div>
I then open dialogs above that app, and often times (I notice it particularly in Android browser), when I click the upper left close button on the dialog, the dialog-opening page appears but then the home page appears after that. When I comment out the home button, it works as expected. I suspect that it's interpreting the dialog close click as a click on the "home" button as well.
Let me know if you need a fuller example for replication.
Ok, we just made a bigger change that should put events back to where they were pre-beta 1. Can you try the latest again:
<link href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" rel="stylesheet" type="text/css" /> <script src="http://code.jquery.com/jquery-1.6.1.min.js"></script> <script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
I have the same issue with the dialog box "close" button activating other buttons on the page. I've managed to move it off of most of them by adjusting the top margin to