JQM (jQueryMobile) toggle() function performs differently if passing false first
Here is an example:
http://jsfiddle.net/FzZwt/8/
If I pass false first the transition is smooth and slides.
If I pass true first the transition is instant
- <div data-role="page">
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <div>Boolean Test 1 - Passing TRUE first</div>
- <input type="radio" name="boolean" id="true" value="true" />
- <label for="true">Yes</label>
- <input type="radio" name="boolean" id="false" value="false" checked="checked"/>
- <label for="false">No</label>
- <div class="hidden" name="hidden_div" id="hidden_div">Show Me!!!</div>
- </fieldset>
- </div>
-
- <div data-role="fieldcontain">
- <fieldset data-role="controlgroup" data-type="horizontal">
- <div>Boolean Test 2 - Passing FALSE First</div>
- <input type="radio" name="boolean2" id="true" value="true" />
- <label for="true">Yes</label>
- <input type="radio" name="boolean2" id="false" value="false" checked="checked"/>
- <label for="false">No</label>
- <div class="hidden" name="hidden_div2" id="hidden_div2">Show Me!!!</div>
- </fieldset>
- </div>
-
- </div>
is this considered a bug?