|
|
|
@ -192,7 +192,7 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
|
|
const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus } = this.props;
|
|
|
|
|
const { value, suggestions, disabled, placeholder, onKeyUp, autoFocus, children } = this.props;
|
|
|
|
|
const { suggestionsHidden } = this.state;
|
|
|
|
|
const style = { direction: 'ltr' };
|
|
|
|
|
|
|
|
|
@ -200,7 +200,8 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
|
|
|
|
|
style.direction = 'rtl';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
return [
|
|
|
|
|
<div className='compose-form__autosuggest-wrapper'>
|
|
|
|
|
<div className='autosuggest-textarea'>
|
|
|
|
|
<label>
|
|
|
|
|
<span style={{ display: 'none' }}>{placeholder}</span>
|
|
|
|
@ -222,12 +223,15 @@ export default class AutosuggestTextarea extends ImmutablePureComponent {
|
|
|
|
|
aria-autocomplete='list'
|
|
|
|
|
/>
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{children}
|
|
|
|
|
</div>,
|
|
|
|
|
<div className='autosuggest-textarea__suggestions-wrapper'>
|
|
|
|
|
<div className={`autosuggest-textarea__suggestions ${suggestionsHidden || suggestions.isEmpty() ? '' : 'autosuggest-textarea__suggestions--visible'}`}>
|
|
|
|
|
{suggestions.map(this.renderSuggestion)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
</div>,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|