Open
Description
The dropdown is visible and you can select items when the input element is disabled:
<select class="chosen-select" multiple disabled>
<option>Praesent vestibulum dapibus nibh</option>
<option selected>Vestibulum facilisis purus</option>
<option>Etiam ultricies nisi</option>
</select>

Steps to reproduce
-
Create a select input element and add the disabled attribute to it
-
Click on the select element, the grey/transparent dropdown is visible. You can select items.
https://jsfiddle.net/Lj2qzbwf/
Expected behavior
If the field is disabled then it is not possible to interact with it.
Additional information
https://github.com/JJJ/chosen/blob/master/docs/chosen.jquery.js#L1204
In the container_mousedown()
function, the is_disabled
check is not correctly implemented.
The disabled state must be checked at the beginning of the function. See https://github.com/harvesthq/chosen/blob/master/coffee/chosen.jquery.coffee#L134
Metadata
Metadata
Assignees
Labels
No labels