Snog
Well-known member
- Affected version
- 2.0.x
I don't know if this is a bug or not....
I have a template that generates this HTML...
The disabler properly hides the DIV until Dropdown 1 is selected.
But if you select any other selection after that, the DIV remains visible. I know with the radio type, if you select a different selection the div would be hidden. I would expect the same from a single selection dropdown.
Bug? Or is the disabler just not intended for use with single selection dropdowns?
I have a template that generates this HTML...
HTML:
<dl class="formRow formRow--noColon formRow--input">
<dt>
<div class="formRow-labelWrapper">
<label class="formRow-label" for="_xfUid-12-1538766569"><div class="bbWrapper">Single Selection Dropdown</div></label></div>
</dt>
<dd>
<select name="item23" class="input" id="_xfUid-12-1538766569">
<option value="0">Choose one</option>
<option value="1" data-xf-init="disabler" data-container="#conditional35-1" data-hide="true">Dropdown 1</option>
<option value="2">Dropdown 2</option>
<option value="3">Dropdown 3</option>
</select>
</dd>
</dl>
<div id="conditional35-1">
<dl class="formRow formRow--noColon formRow--input">
<dt>
<div class="formRow-labelWrapper">
<label class="formRow-label" for="_xfUid-13-1538766569"><div class="bbWrapper">Test For Dropdown</div></label></div>
</dt>
<dd>
<div class="inputGroup inputGroup--numbers inputNumber" data-xf-init="number-box"><input type="number" pattern="\d*" class="input input--number js-numberBoxTextInput" value="0" min="0" step="1" required="required" name="itemclo" id="_xfUid-13-1538766569" /></div>
</dd>
</dl>
</div>
The disabler properly hides the DIV until Dropdown 1 is selected.
But if you select any other selection after that, the DIV remains visible. I know with the radio type, if you select a different selection the div would be hidden. I would expect the same from a single selection dropdown.
Bug? Or is the disabler just not intended for use with single selection dropdowns?