diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-03-24 18:05:43 +0900 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-03-24 09:05:43 +0000 |
commit | 1167b391854957a5d58ed569c1dc2f80e9ccc599 (patch) | |
tree | 071e2e2217dee77fee5b310620aa946d4f68a69d /webapp/components/suggestion/suggestion_box.jsx | |
parent | 98baf1536eb1b47d8258e188e1c80393182c6525 (diff) | |
download | chat-1167b391854957a5d58ed569c1dc2f80e9ccc599.tar.gz chat-1167b391854957a5d58ed569c1dc2f80e9ccc599.tar.bz2 chat-1167b391854957a5d58ed569c1dc2f80e9ccc599.zip |
Fixed mobile search focus - keyboard collapse/focus (#5766)
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index eade494ef..2ac842846 100644 --- a/webapp/components/suggestion/suggestion_box.jsx +++ b/webapp/components/suggestion/suggestion_box.jsx @@ -25,6 +25,7 @@ export default class SuggestionBox extends React.Component { this.handleCompositionEnd = this.handleCompositionEnd.bind(this); this.handleKeyDown = this.handleKeyDown.bind(this); this.handlePretextChanged = this.handlePretextChanged.bind(this); + this.blur = this.blur.bind(this); this.suggestionId = Utils.generateId(); SuggestionStore.registerSuggestionBox(this.suggestionId); @@ -189,6 +190,10 @@ export default class SuggestionBox extends React.Component { } } + blur() { + this.refs.textbox.blur(); + } + render() { const { type, |