Commit 38f4d5d0 by Torkel Ödegaard Committed by Dan Cech

fix: restored previous behavior of form_dropdown, this fixes all my observerd…

fix: restored previous behavior of form_dropdown, this fixes all my observerd bugs with the dropdown behavior
parent 7e750cef
...@@ -176,7 +176,7 @@ export class FormDropdownCtrl { ...@@ -176,7 +176,7 @@ export class FormDropdownCtrl {
updateValue(text) { updateValue(text) {
text = _.unescape(text); text = _.unescape(text);
if ((!this.allowCustom && text === '') || this.text === text) { if (text === '' || this.text === text) {
return; return;
} }
...@@ -225,9 +225,7 @@ export class FormDropdownCtrl { ...@@ -225,9 +225,7 @@ export class FormDropdownCtrl {
var typeahead = this.inputElement.data('typeahead'); var typeahead = this.inputElement.data('typeahead');
if (typeahead) { if (typeahead) {
if (!this.allowCustom) {
this.inputElement.val(''); this.inputElement.val('');
}
typeahead.lookup(); typeahead.lookup();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment