I think it would be a nice feature to implement something that the jquery tokeninput plugin is also doing. When you have configured select2 to get remote data we could cache the data coming back so if later we issue the same query again ...
The select looks like an string input and should therefore act in a similar way. If it's confusing developers using it, chances are it's also going to their users too. With that said, I can understand it's a difficult issue, but that just doesn't make it resolved just by stating why the desired behaviour was...
Перевод отдельных слов, фраз, а также целых текстов и веб-страниц (английский, немецкий, французский, испанский, польский и др.).
According to #3279 the feature of opening the select2 search dropdown is not implemented in the newer version according to technical difficulties, but also because it does not reflect the default behaviour of a native select.
In previous versions, the formatNoMatches option could be used to provide a link to add a new item if no matches were found: formatNoMatches
I have implemented select2 widget, version 4. It works, but the x icon. It is not clearing the selection.
Prevent catching the click (and disallow opening of the select or triggering the select2::open) when the clear indicator is pressed to clear the selection when allowClear is true. This behavior worked fine in 3.5.2 - not sure if there is...
SQL Инъекции. Discussion in 'Уязвимости' started by yarbabin, 27 Apr 2015. Page 9 of 13.
Select2 uses a function to load result data. Here is a trivial example that creates choices that consist of user's input repeated a number of times: In order to take advantage of custom data loading Select2 should be attached to an input type='hidden' tag, otherwise data is parsed from select's option tags.
Select car: Audi BMW Citroen Ford Honda Jaguar Land Rover Mercedes Mini Nissan Toyota Volvo.