summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion
diff options
context:
space:
mode:
authorAsaad Mahmood <asaad@spinpunch.com>2016-03-24 18:12:57 +0500
committerAsaad Mahmood <asaad@spinpunch.com>2016-03-24 18:12:57 +0500
commitd64c75ae4a5561075d9020ff1e4e62f160660b43 (patch)
tree5df36f482fd2f3a34670c85ab377be58bb264e3c /webapp/components/suggestion
parent0abd7116c57121a3a58d77a9996b96f11851937f (diff)
downloadchat-d64c75ae4a5561075d9020ff1e4e62f160660b43.tar.gz
chat-d64c75ae4a5561075d9020ff1e4e62f160660b43.tar.bz2
chat-d64c75ae4a5561075d9020ff1e4e62f160660b43.zip
Multiple UI Improvements
Diffstat (limited to 'webapp/components/suggestion')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index b7f0e3a36..dbec024ac 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -139,6 +139,14 @@ export default class SuggestionBox extends React.Component {
{...newProps}
/>
);
+ } else if (this.props.type === 'search') {
+ textbox = (
+ <input
+ ref='textbox'
+ type='search'
+ {...newProps}
+ />
+ );
} else if (this.props.type === 'textarea') {
textbox = (
<TextareaAutosize
@@ -166,7 +174,7 @@ SuggestionBox.defaultProps = {
SuggestionBox.propTypes = {
listComponent: React.PropTypes.func.isRequired,
- type: React.PropTypes.oneOf(['input', 'textarea']).isRequired,
+ type: React.PropTypes.oneOf(['input', 'textarea', 'search']).isRequired,
value: React.PropTypes.string.isRequired,
onUserInput: React.PropTypes.func,
providers: React.PropTypes.arrayOf(React.PropTypes.object),