With the following code, whenever I change the select, the Framework7 UI locks up. I can’t even get the main menu to work. Swipebacks stop working. I can tab to the next control but that’s about it. If I do a hard reload or empty cache reload in Chrome the app reloads but still everything is hung and I have to close the browser window and start a new debugging session.
There are NO errors in the console.
Here’s the HTML:
<div class="row">
<div class="col-70">
<li class="item-content item-input item-input-outline">
<div class="item-inner">
<div class="item-input-wrap input-dropdown-wrap">
<select id="quesAnsType" placeholder="Pick the Answer Type">
<option value="T">True or False</option>
<option value="Y">Yes or No</option>
<option value="M">Multiple Choice</option>
<option value="N">Narrative</option>
</select>
</div>
</div>
</li>
</div>
Here’s the JS:
$$('#quesAnsType').change(function() {
if( this.value == "M" )
{
$$("#divMultiple").show();
$$("#quesAnsA").focus();
}
else
{
$$("#divMultiple").hide();
$$("#quesSave").focus();
}
return(true);
});