From 1ab11cf85f30b96d3a673794fbd30b2ce99095ef Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Fri, 5 Jul 2024 14:00:07 -0400 Subject: [PATCH] allow autocomplete on input element (jsdoc) --- public/scripts/autocomplete/AutoComplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/autocomplete/AutoComplete.js b/public/scripts/autocomplete/AutoComplete.js index 9a7ef6f6a..39ff0fae5 100644 --- a/public/scripts/autocomplete/AutoComplete.js +++ b/public/scripts/autocomplete/AutoComplete.js @@ -17,7 +17,7 @@ export const AUTOCOMPLETE_WIDTH = { }; export class AutoComplete { - /**@type {HTMLTextAreaElement}*/ textarea; + /**@type {HTMLTextAreaElement|HTMLInputElement}*/ textarea; /**@type {boolean}*/ isFloating = false; /**@type {()=>boolean}*/ checkIfActivate; /**@type {(text:string, index:number) => Promise}*/ getNameAt;