reduce autocomplete render debounce

This commit is contained in:
LenAnderson
2024-04-19 09:07:16 -04:00
parent fe81221c56
commit ec8f1eaafa

View File

@ -2176,7 +2176,7 @@ export async function setSlashCommandAutoComplete(textarea, isFloating = false)
document.body.append(dom); document.body.append(dom);
// prevType = parserResult.type; // prevType = parserResult.type;
}; };
const renderDebounced = debounce(render, 100); const renderDebounced = debounce(render, 10);
const updatePosition = () => { const updatePosition = () => {
if (isFloating) { if (isFloating) {
updateFloatingPosition(); updateFloatingPosition();