x-ui-design 0.5.25 → 0.5.26

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.esm.js CHANGED
@@ -3439,8 +3439,8 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3439
3439
  return;
3440
3440
  }
3441
3441
  const updatedSelected = [...selected, newOptionValue];
3442
- onSelect?.(updatedSelected);
3443
3442
  onChange?.(updatedSelected);
3443
+ onSelect?.(updatedSelected);
3444
3444
  const input = selectRef.current?.querySelector('input');
3445
3445
  if (input) {
3446
3446
  input.value = '';
@@ -3464,16 +3464,16 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3464
3464
  } else {
3465
3465
  setIsOpen(defaultOpen);
3466
3466
  setSelected(optionValue);
3467
- onSelect?.(optionValue, option);
3468
3467
  onChange?.(optionValue, option);
3468
+ onSelect?.(optionValue, option);
3469
3469
  }
3470
3470
  handleClearInputValue();
3471
3471
  };
3472
3472
  const handleClear = () => {
3473
3473
  const value = hasMode ? [] : '';
3474
3474
  setSelected(value);
3475
- onSelect?.('');
3476
3475
  onChange?.('');
3476
+ onSelect?.('');
3477
3477
  onClear?.();
3478
3478
  handleClearInputValue();
3479
3479
  };