Skip to content

Commit

Permalink
also refresh suggestions and learn from input after new word was chos…
Browse files Browse the repository at this point in the history
…en by mouse/keyboard
  • Loading branch information
klues committed Jun 18, 2019
1 parent 6212cf3 commit 9adcc17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ <h1>Predictionary Demo</h1>
});
$('#textarea').focus();
this.predictionIndex = null;
this.refreshSuggestions();
if (this.learnFromType) {
predictionary.learnFromInput(this.input);
}

},
choose: function () {
if (this.predictionIndex === null) {
Expand Down

0 comments on commit 9adcc17

Please sign in to comment.