mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
set isForced to true on input
This commit is contained in:
@ -1981,6 +1981,8 @@ export function setNewSlashCommandAutoComplete(textarea, isFloating = false) {
|
|||||||
isActive = false;
|
isActive = false;
|
||||||
};
|
};
|
||||||
const show = (isInput = false, isForced = false) => {
|
const show = (isInput = false, isForced = false) => {
|
||||||
|
//TODO check if isInput and isForced are both required
|
||||||
|
isForced = isForced || isInput;
|
||||||
text = textarea.value;
|
text = textarea.value;
|
||||||
// only show with textarea in focus
|
// only show with textarea in focus
|
||||||
if (document.activeElement != textarea) return hide();
|
if (document.activeElement != textarea) return hide();
|
||||||
|
Reference in New Issue
Block a user