Refactor combo box integration; streamline onAdd, onRemove, and onEdit parameters in render_combobox macro for improved functionality and readability

This commit is contained in:
Yaro Kasear 2025-06-20 10:02:40 -05:00
parent d3a9b6dbd5
commit b182e30c43
3 changed files with 71 additions and 26 deletions

View file

@ -1,6 +1,4 @@
const ComboBoxWidget = (() => {
let tempIdCounter = -1;
function initComboBox(ns, config = {}) {
const input = document.querySelector(`#${ns}-input`);
const list = document.querySelector(`#${ns}-list`);