1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 19:51:42 +00:00

Merge pull request #1211 from yosmoc/tagconfirm_onblur

confirm tag at onBlur event
This commit is contained in:
Kazz Yokomizo
2017-12-01 15:11:47 +09:00
committed by GitHub

View File

@@ -38,6 +38,10 @@ class TagSelect extends React.Component {
} }
} }
handleNewTagBlur (e) {
this.submitTag()
}
removeLastTag () { removeLastTag () {
let { value } = this.props let { value } = this.props
@@ -135,6 +139,7 @@ class TagSelect extends React.Component {
placeholder='Add tag...' placeholder='Add tag...'
onChange={(e) => this.handleNewTagInputChange(e)} onChange={(e) => this.handleNewTagInputChange(e)}
onKeyDown={(e) => this.handleNewTagInputKeyDown(e)} onKeyDown={(e) => this.handleNewTagInputKeyDown(e)}
onBlur={(e) => this.handleNewTagBlur(e)}
/> />
</div> </div>
) )