Skip to content

Commit

Permalink
Let typeahead show title just like regular inputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed May 14, 2018
1 parent 1d6cf9d commit fbd6372
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/answer/TypeaheadAnswer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ export default class TypeaheadAnswer extends React.Component {
const value = Utils.idToName(this.state.options, this.props.value),
question = this.props.question,
inputProps = {
disabled: FormUtils.isDisabled(question)
disabled: FormUtils.isDisabled(question),
title: this.props.title
};
return <div>
<Typeahead ref={(c) => this.typeahead = c} className='form-group form-group-sm' formInputOption='id'
inputProps={inputProps}
title={this.props.title} value={value} label={this.props.label}
value={value} label={this.props.label}
placeholder={this.props.label} filterOption='name' size='small'
displayOption='name' onOptionSelected={this._onOptionSelected} optionsButton={true} allowReset={true}
options={this.state.options} customListComponent={Configuration.typeaheadResultList}/>
Expand Down

0 comments on commit fbd6372

Please sign in to comment.