add category hints from methodlist
This commit is contained in:
parent
92709607fc
commit
67f98e328a
|
@ -418,7 +418,7 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
</div>
|
||||
<div class="col mb-3">
|
||||
<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()}
|
||||
<div name="category-list" class="form-text">
|
||||
${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.stopPropagation()
|
||||
if(ev.target.getAttribute('name') === "delete-category"){
|
||||
|
|
Loading…
Reference in New Issue