Patterns icon indicating copy to clipboard operation
Patterns copied to clipboard

pat-depends on an option

Open reinhardt opened this issue 11 years ago • 0 comments

Consider the following example:

<input type="checkbox" name="special" /> Activate special option
<select>
    <option>Default</option>
    <option class="pat-depends" data-pat-depends="special">Special</option>
</select>

If I tick the checkbox, the additional option "Special" appears in the dropdown as expected. If I then select the new option and untick the checkbox, the dropdown still shows "Special" as selected, although only "Default" is now available (which I can verify by clicking the dropdown). I would expect the dropdown to switch to some default, maybe the first available option.

Tested in Firefox 32.0 and Chromium 37.0.2062.94

reinhardt avatar Sep 23 '14 13:09 reinhardt