add category hints from methodlist

This commit is contained in:
dcore94 2023-04-06 16:43:46 +02:00
parent 92709607fc
commit 67f98e328a
1 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ class CCPMethodEditorController extends HTMLElement{
</div> </div>
<div class="col mb-3"> <div class="col mb-3">
<label class="form-label">Categories</label> <label class="form-label">Categories</label>
<input list="categoryhints" name="category" class="form-control" type="text"/> <input list="categoryhints" name="category-input" class="form-control" type="text"/>
${this.renderCategoryHints()} ${this.renderCategoryHints()}
<div name="category-list" class="form-text"> <div name="category-list" class="form-text">
${this.renderCategories()} ${this.renderCategories()}
@ -592,7 +592,7 @@ class CCPMethodEditorController extends HTMLElement{
} }
}) })
this.#rootdoc.querySelector("div[name=keyword-list]").addEventListener("click", ev=>{ this.#rootdoc.querySelector("div[name=category-list]").addEventListener("click", ev=>{
ev.preventDefault() ev.preventDefault()
ev.stopPropagation() ev.stopPropagation()
if(ev.target.getAttribute('name') === "delete-category"){ if(ev.target.getAttribute('name') === "delete-category"){