(kind, raw)
| 57 | x.setAttribute("aria-label", "Remove"); |
| 58 | x.textContent = "×"; |
| 59 | x.dataset.kind = kind; |
| 60 | x.dataset.value = val; |
| 61 | chip.appendChild(x); |
| 62 | container.appendChild(chip); |
| 63 | }); |
| 64 | } |
| 65 | |
| 66 | function addChip(kind, raw) { |
| 67 | initState(); |
| 68 | const v = raw == null ? "" : String(raw).trim(); |
| 69 | if (!v) return; |
| 70 | const list = window.multiFilterChips[kind]; |
no test coverage detected