From 52dd1a87f2a8ba176eb4103f7bef75254527d3b8 Mon Sep 17 00:00:00 2001 From: Andrew Watkins Date: Thu, 26 Jan 2017 17:03:07 -0800 Subject: [PATCH] Trim whitespace --- ui/src/kapacitor/components/OpsGenieConfig.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/kapacitor/components/OpsGenieConfig.js b/ui/src/kapacitor/components/OpsGenieConfig.js index 6bf230b63..1cd11c28f 100644 --- a/ui/src/kapacitor/components/OpsGenieConfig.js +++ b/ui/src/kapacitor/components/OpsGenieConfig.js @@ -98,7 +98,7 @@ const TagInput = React.createClass({ handleAddTag(e) { if (e.key === 'Enter') { e.preventDefault(); - const newItem = e.target.value; + const newItem = e.target.value.trim(); const {tags, onAddTag} = this.props; if (!this.shouldAddToList(newItem, tags)) { return;