Merge pull request #1180 from matrix-org/luke/fix-rte-force-immediately

When hitting "tab" use an autocompleteDelay of 0
pull/21833/head
Luke Barnard 2017-07-05 18:20:48 +01:00 committed by GitHub
commit 29e793f591
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export default class Autocomplete extends React.Component {
let autocompleteDelay = UserSettingsStore.getLocalSetting('autocompleteDelay', 200);
// Don't debounce if we are already showing completions
if (this.state.completions.length > 0) {
if (this.state.completions.length > 0 || this.state.forceComplete) {
autocompleteDelay = 0;
}