set isForced to true on input

This commit is contained in:
LenAnderson 2024-03-31 07:51:02 -04:00
parent ef23930eaf
commit b4ad798e77
1 changed files with 2 additions and 0 deletions

View File

@ -1981,6 +1981,8 @@ export function setNewSlashCommandAutoComplete(textarea, isFloating = false) {
isActive = false;
};
const show = (isInput = false, isForced = false) => {
//TODO check if isInput and isForced are both required
isForced = isForced || isInput;
text = textarea.value;
// only show with textarea in focus
if (document.activeElement != textarea) return hide();