|
$dropdown.prev('select').val($option.data('value')).trigger('change'); |
When the library should update the option for the original selected, it fails to do so if the value is interpreted by js as something other than a string.
For example with the following select.
<select id="id" name="name" class="nice-select" /">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
jquery-nice-select/js/jquery.nice-select.js
Line 126 in bdbb74f
When the library should update the option for the original selected, it fails to do so if the value is interpreted by js as something other than a string.
For example with the following select.