diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-24 09:53:13 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-24 09:53:13 -0400 |
commit | 1ce18f7a9afbd8b192e05e7bc8f914430feacc4b (patch) | |
tree | 75b469616ae89fc436fd932a27d0a2e4b40681f4 /webapp/components/suggestion/suggestion_box.jsx | |
parent | 68dad8c7345b12c7d0b10709ddc1873d4b40163e (diff) | |
parent | d64c75ae4a5561075d9020ff1e4e62f160660b43 (diff) | |
download | chat-1ce18f7a9afbd8b192e05e7bc8f914430feacc4b.tar.gz chat-1ce18f7a9afbd8b192e05e7bc8f914430feacc4b.tar.bz2 chat-1ce18f7a9afbd8b192e05e7bc8f914430feacc4b.zip |
Merge pull request #2526 from asaadmahmoodspin/ui-improvements
Multiple UI Improvements
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 10 |
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), |