Autocomplete placeholder now replaces spaces in input value with unicode non-breaking space character.
This commit is contained in:
parent
f9ac076e6f
commit
79df27b72c
|
|
@ -278,11 +278,11 @@ class chatBox{
|
|||
//Find current match
|
||||
const match = this.checkAutocomplete();
|
||||
|
||||
|
||||
//Set placeholder to space out the autocomplete display
|
||||
//Use text content because it's unescaped, and while this only effects local users, it'll keep someone from noticing and whinging about it
|
||||
this.autocompletePlaceholder.textContent = this.chatPrompt.value;
|
||||
this.autocompletePlaceholder.innerText = this.chatPrompt.value.replaceAll(" ","\u00A0");
|
||||
//Set the autocomplete display
|
||||
this.autocompleteDisplay.textContent = match.match.replace(match.word, '');
|
||||
this.autocompleteDisplay.innerText = match.match.replace(match.word, '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue