mirror of https://github.com/vector-im/riot-web
turn off force complete when editor content changes
parent
e65744abdc
commit
2d39b25334
|
@ -75,11 +75,11 @@ export default class Autocomplete extends React.Component {
|
|||
} else {
|
||||
selectionOffset++; // selectionOffset is 1-indexed!
|
||||
}
|
||||
} else {
|
||||
// If no completions were returned, we should turn off force completion.
|
||||
forceComplete = false;
|
||||
}
|
||||
|
||||
// If no completions were returned, we should turn off force completion.
|
||||
forceComplete = false;
|
||||
|
||||
let hide = this.state.hide;
|
||||
// These are lists of booleans that indicate whether whether the corresponding provider had a matching pattern
|
||||
const oldMatches = this.state.completions.map((completion) => !!completion.command.command),
|
||||
|
|
Loading…
Reference in New Issue