add catery input with hints

This commit is contained in:
dcore94 2023-04-06 15:22:54 +02:00
parent 1ab1bbef7e
commit 390b65cdb7
1 changed files with 3 additions and 2 deletions

View File

@ -753,10 +753,11 @@ class CCPMethodEditorController extends HTMLElement{
} }
renderCategoryHints(){ renderCategoryHints(){
const cats = ["Uncategorized", this.getCurrentCategory()] const cats1 = ["Uncategorized", this.getCurrentCategory()]
const cats = [...new Set(cats)]
return ` return `
<datalist id="categoryhints"> <datalist id="categoryhints">
${cats.map(c=>`<option value="${c}">${c}</option>`} ${cats.map(c=>`<option value="${c}">${c}</option>`)}
</datalist> </datalist>
` `
} }