@underverse-ui/underverse 0.1.22 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5298,14 +5298,23 @@ var MultiCombobox = ({
5298
5298
  return /* @__PURE__ */ jsxs24("span", { className: "inline-flex items-center gap-1 bg-accent text-accent-foreground rounded px-2 py-1 text-xs", children: [
5299
5299
  /* @__PURE__ */ jsx28("span", { className: "truncate max-w-[120px]", children: option ? displayFormat(option) : itemValue }),
5300
5300
  /* @__PURE__ */ jsx28(
5301
- "button",
5301
+ "div",
5302
5302
  {
5303
- type: "button",
5303
+ role: "button",
5304
+ tabIndex: 0,
5305
+ "aria-label": `Remove ${option ? option.label : itemValue}`,
5304
5306
  onClick: (e) => {
5305
5307
  e.preventDefault();
5306
5308
  e.stopPropagation();
5307
5309
  handleRemove(itemValue);
5308
5310
  },
5311
+ onKeyDown: (e) => {
5312
+ if (e.key === "Enter" || e.key === " ") {
5313
+ e.preventDefault();
5314
+ e.stopPropagation();
5315
+ handleRemove(itemValue);
5316
+ }
5317
+ },
5309
5318
  className: "hover:text-destructive transition-colors cursor-pointer",
5310
5319
  children: "\xD7"
5311
5320
  }