From b7f4af8c7844aba4daafd362275ba069cc5aa804 Mon Sep 17 00:00:00 2001 From: yosmoc Date: Thu, 30 Nov 2017 22:04:56 +0100 Subject: [PATCH 1/2] confirm tag at onBlur event When user inputs the tag and leave the tag input box without fixing(enter or tab key), tag string is still there, but it is not stored as a tag. This changes solved this problem. When the cursol is out of the tag input, it registers the input as a tag. --- browser/main/Detail/TagSelect.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/main/Detail/TagSelect.js b/browser/main/Detail/TagSelect.js index 49616d16..3e1efb86 100644 --- a/browser/main/Detail/TagSelect.js +++ b/browser/main/Detail/TagSelect.js @@ -38,6 +38,10 @@ class TagSelect extends React.Component { } } + handleNewTagBlur (e) { + this.submitTag() + } + removeLastTag () { let { value } = this.props @@ -135,6 +139,7 @@ class TagSelect extends React.Component { placeholder='Add tag...' onChange={(e) => this.handleNewTagInputChange(e)} onKeyDown={(e) => this.handleNewTagInputKeyDown(e)} + onBlur={(e) => this.handleNewTagBlur(e)} /> ) From 34f377eb5c2ed710e5d6c7c5e3770b0104792efc Mon Sep 17 00:00:00 2001 From: Paul Rosset Date: Thu, 30 Nov 2017 21:32:28 +0000 Subject: [PATCH 2/2] Correction Notification top-left --- browser/components/RealtimeNotification.styl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/browser/components/RealtimeNotification.styl b/browser/components/RealtimeNotification.styl index 7eeebb37..a79a4998 100644 --- a/browser/components/RealtimeNotification.styl +++ b/browser/components/RealtimeNotification.styl @@ -1,11 +1,8 @@ .notification-area z-index 1000 font-size 12px - position absolute - bottom 20px - width 100% - float left - height 30px + position: relative + top: 12px background-color none .notification-link