{
if (open || disabled || value.length === 0) return;
if (e.key !== "Backspace" && e.key !== "Delete") return;
e.preventDefault();
const last = value[value.length - 1];
if (last !== undefined) handleRemove(last, e);
}}
>
{value.length > 0 ? (
<>
{displayedValues.map((val) => (
{getLabel(val)}
{!disabled && (
// ปุ่มซ้อนในปุ่มหลัก = โปรแกรมอ่านจอเข้าไม่ถึง → ซ่อนจาก AT ให้เป็นทางลัดของเมาส์/นิ้ว
// (คีย์บอร์ด: Backspace บนช่องลบตัวล่าสุด หรือเอาออกในรายการ) · พื้นที่แตะ 24px (-m + p)
handleRemove(val, e)}
className="-my-1 -mr-1.5 ml-0.5 rounded-full p-1.5 hover:bg-muted-foreground/20 print:hidden"
>
)}
))}
{remainingCount > 0 && (
{(text.combobox?.moreCount ?? "+{count} รายการ").replace(
"{count}",
String(remainingCount),
)}
)}
>
) : (
{placeholder}
)}
{value.length > 0 && !disabled && (
// ซ่อนจาก AT เหตุผลเดียวกับปุ่มลบชิป — ล้างทั้งหมดผ่านคีย์บอร์ดได้ในรายการ
)}