From 38f4d5d06d77acf8b06e7375897859bb5a138391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 12 Jan 2018 13:06:29 +0100 Subject: [PATCH] fix: restored previous behavior of form_dropdown, this fixes all my observerd bugs with the dropdown behavior --- public/app/core/components/form_dropdown/form_dropdown.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/app/core/components/form_dropdown/form_dropdown.ts b/public/app/core/components/form_dropdown/form_dropdown.ts index f3d920c5b4d..cf9c6b5efe0 100644 --- a/public/app/core/components/form_dropdown/form_dropdown.ts +++ b/public/app/core/components/form_dropdown/form_dropdown.ts @@ -176,7 +176,7 @@ export class FormDropdownCtrl { updateValue(text) { text = _.unescape(text); - if ((!this.allowCustom && text === '') || this.text === text) { + if (text === '' || this.text === text) { return; } @@ -225,9 +225,7 @@ export class FormDropdownCtrl { var typeahead = this.inputElement.data('typeahead'); if (typeahead) { - if (!this.allowCustom) { - this.inputElement.val(''); - } + this.inputElement.val(''); typeahead.lookup(); } }