selectize.js
selectize.js copied to clipboard
create: 'false' does not work with sortField: 'text'
Disabling the create option does not seem to work if sorting is set to 'text'.
Example:
<div class="sandbox">
<label for="select-country">Country:</label>
<select id="select-country" class="demo-default" placeholder="Select a country...">
<option value="">Select a country...</option>
<option value="AF">Afghanistan</option>
<option value="AX">Åland Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">Andorra</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
<option value="AG">Antigua and Barbuda</option>
<option value="AR">Argentina</option>
<option value="AM">Armenia</option>
<option value="AW">Aruba</option>
<option value="AU">Australia</option>
<option value="AT">Austria</option>
<option value="AZ">Azerbaijan</option>
<option value="YE">Yemen</option>
<option value="ZM">Zambia</option>
<option value="ZW">Zimbabwe</option>
</select>
</div>
<div class="description">
A good example of (1) support for international characters (diacritics) and (2) how items are scored and sorted.
Try typing "islands", for instance.
</div>
<script class="show">
$('#select-country').selectize({create:'false', sortField:'text'});
</script>
Expected result: typing a country that doesn't appear on the list should not trigger the "Add... " text
Actual result: typing a country that doesn't appear on the list does trigger the "Add.. " text
closing stale issues older than one year. If this issue was closed in error please message the maintainers. All issues must include a proper title, description, and examples.