From 1167b391854957a5d58ed569c1dc2f80e9ccc599 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Fri, 24 Mar 2017 18:05:43 +0900 Subject: Fixed mobile search focus - keyboard collapse/focus (#5766) --- webapp/components/suggestion/suggestion_box.jsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webapp/components/suggestion') 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, -- cgit v1.2.3-1-g7c22