mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-19 13:31:24 +02:00
Merge pull request #1180 from matrix-org/luke/fix-rte-force-immediately
When hitting "tab" use an autocompleteDelay of 0
This commit is contained in:
commit
29e793f591
@ -68,7 +68,7 @@ export default class Autocomplete extends React.Component {
|
|||||||
let autocompleteDelay = UserSettingsStore.getLocalSetting('autocompleteDelay', 200);
|
let autocompleteDelay = UserSettingsStore.getLocalSetting('autocompleteDelay', 200);
|
||||||
|
|
||||||
// Don't debounce if we are already showing completions
|
// 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;
|
autocompleteDelay = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user