summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-01-09 19:32:27 +0500
committerHarrison Healey <harrisonmhealey@gmail.com>2017-01-09 09:32:27 -0500
commit93a526f7ed5464e18e11137f798d09c0561b16a8 (patch)
tree3ee6b8c139790b99ed9bc5419824dfa981ba14df /webapp/components/suggestion
parentf6672605e82919798eb23ec45d8e663351af7d97 (diff)
downloadchat-93a526f7ed5464e18e11137f798d09c0561b16a8.tar.gz
chat-93a526f7ed5464e18e11137f798d09c0561b16a8.tar.bz2
chat-93a526f7ed5464e18e11137f798d09c0561b16a8.zip
PLT-5179 - Fixing modal overflow for autocomplete (#5002)
* PLT-5179 - Fixing modal overflow for autocomplete * PLT-5171 - Fixing search bar popover behaviour
Diffstat (limited to 'webapp/components/suggestion')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index b3f9843c6..fb55b0588 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -64,6 +64,7 @@ export default class SuggestionBox extends React.Component {
// Delay this slightly so that we don't clear the suggestions before we run click handlers on SuggestionList
GlobalActions.emitClearSuggestions(this.suggestionId);
}, 100);
+ this.props.onBlur();
}
handleChange(e) {
@@ -272,6 +273,7 @@ SuggestionBox.propTypes = {
renderDividers: React.PropTypes.bool,
// explicitly name any input event handlers we override and need to manually call
+ onBlur: React.PropTypes.func,
onChange: React.PropTypes.func,
onKeyDown: React.PropTypes.func,
onItemSelected: React.PropTypes.func