Skip to content
Extraits de code Groupes Projets
Valider 28382f5a rédigé par Yohan Boniface's avatar Yohan Boniface
Parcourir les fichiers

Autocomplete: do not select a result without value

parent 9257264b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -345,7 +345,7 @@ L.S.AutoComplete.Select = L.S.AutoComplete.BaseSelect.extend({ ...@@ -345,7 +345,7 @@ L.S.AutoComplete.Select = L.S.AutoComplete.BaseSelect.extend({
initSelectedContainer: function () { initSelectedContainer: function () {
this.selected_container = L.DomUtil.after(this.input, L.DomUtil.element('div', {className: 'umap-singleresult'})); this.selected_container = L.DomUtil.after(this.input, L.DomUtil.element('div', {className: 'umap-singleresult'}));
var self = this; var self = this;
if (this.el.selectedIndex !== -1) { if (this.el.selectedIndex !== -1 && this.el[this.el.selectedIndex].value !== '') {
self.displaySelected(self.optionToResult(this.el[this.el.selectedIndex])); self.displaySelected(self.optionToResult(this.el[this.el.selectedIndex]));
} }
}, },
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter