mirror of
https://github.com/element-hq/element-web
synced 2024-10-29 22:17:51 +03:00
turn off force complete when editor content changes
This commit is contained in:
parent
e65744abdc
commit
2d39b25334
1 changed files with 3 additions and 3 deletions
|
@ -75,11 +75,11 @@ export default class Autocomplete extends React.Component {
|
||||||
} else {
|
} else {
|
||||||
selectionOffset++; // selectionOffset is 1-indexed!
|
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;
|
let hide = this.state.hide;
|
||||||
// These are lists of booleans that indicate whether whether the corresponding provider had a matching pattern
|
// 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),
|
const oldMatches = this.state.completions.map((completion) => !!completion.command.command),
|
||||||
|
|
Loading…
Reference in a new issue