From d2a294541837bf0bab059ea4f9c26c537dfdb741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 9 Sep 2018 11:07:36 +0100 Subject: [PATCH] fix(ui): hide selected option in suggestion dropdown --- ui/src/Components/SilenceModal/LabelNameInput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/Components/SilenceModal/LabelNameInput.js b/ui/src/Components/SilenceModal/LabelNameInput.js index bedb21361..21f8c7b99 100644 --- a/ui/src/Components/SilenceModal/LabelNameInput.js +++ b/ui/src/Components/SilenceModal/LabelNameInput.js @@ -94,7 +94,8 @@ const LabelNameInput = observer( defaultValue: value, options: matcher.suggestions.names, placeholder: isValid ? "Label name" : , - onChange: this.onChange + onChange: this.onChange, + hideSelectedOptions: true }; }; }