Skip to content

Commit

Permalink
Merge pull request #430 from unchartedsoftware/bugfix/428
Browse files Browse the repository at this point in the history
Hovering over a suggestion should modify previewText
  • Loading branch information
Ghnuberath authored Jan 30, 2019
2 parents a744246 + 781a0cc commit bcb102f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/assistants/generic/option-assistant.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ export class OptionAssistant extends Assistant {

@Bind
onSuggestionHover (idx) {
this.setState({activeSuggestion: idx});
this.setState({
activeSuggestion: idx
});
this.machineState.previewValue = this.state.suggestions[this.state.activeSuggestion];
setTimeout(() => this.fixListScrollPosition());
}

@Bind
Expand Down

0 comments on commit bcb102f

Please sign in to comment.