@algorithm-shift/design-system 1.3.119 → 1.3.120

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.mjs CHANGED
@@ -3374,7 +3374,6 @@ function LazyMultiSelectDropdown({
3374
3374
  onChange,
3375
3375
  placeholder,
3376
3376
  className,
3377
- id,
3378
3377
  disabled,
3379
3378
  readOnly,
3380
3379
  source,
@@ -3440,10 +3439,10 @@ function LazyMultiSelectDropdown({
3440
3439
  }
3441
3440
  };
3442
3441
  const selectedOptions = useMemo6(() => {
3443
- return normalizedValue.map((id2) => {
3444
- const fromLazy = lazyOptions.find((opt) => opt.value === id2);
3442
+ return normalizedValue.map((id) => {
3443
+ const fromLazy = lazyOptions.find((opt) => opt.value === id);
3445
3444
  if (fromLazy) return fromLazy;
3446
- return { value: id2, label: id2 };
3445
+ return { value: id, label: id };
3447
3446
  });
3448
3447
  }, [normalizedValue, lazyOptions]);
3449
3448
  useEffect25(() => {
@@ -3478,11 +3477,11 @@ function LazyMultiSelectDropdown({
3478
3477
  } else {
3479
3478
  updated = ensureUnique([...normalizedValue, val]);
3480
3479
  }
3481
- onChange?.(convertOutput(updated), id);
3480
+ onChange?.(convertOutput(updated), props.name ?? "");
3482
3481
  };
3483
3482
  const removeTag = (val) => {
3484
3483
  const updated = normalizedValue.filter((v) => v !== val);
3485
- onChange?.(convertOutput(updated), id);
3484
+ onChange?.(convertOutput(updated), props.name ?? "");
3486
3485
  };
3487
3486
  const handleFocus = () => {
3488
3487
  if (!disabled) {