Here are two URLs that lead to files with slight variations:
mobileCSS.html
noCSS.html
In the mobileCSS.html
file, you will find this line:
<link rel="stylesheet" href="/code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.css">
Meanwhile, in the noCSS.html
file, the same line is commented out:
<!--link rel="stylesheet" href="/code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.css"-->
Both pages utilize AngularJS to populate two <select>
elements, where one is dependent on the other. They also include a group of checkboxes to display the model's internal status.
However, when using jquery.mobile-1.4.3.css
:
- The initial values for the
<select>
elements are not shown - The checkbox inputs fail to update
Is this a recognized issue? Do you have any suggestions for addressing it?
Partial solution: correctedCSS.html
This discovery indicates that jQueryMobile isn't updating correctly, and the added decorations obscure the fact that the <select>
and <checkbox>
elements are actually being updated by AngularJS:
.ui-checkbox .ui-btn {
z-index:0; /* jquery.mobile-1.4.3.css sets this to 2 */
}
.ui-select .ui-btn select {
opacity:1; /* jquery.mobile-1.4.3.css sets this to 0 */
}
View screenshots at http://dev.lexogram.com/tests/angularJS/angularVSjqueryMobile.png