x-ui-design 0.4.53 → 0.4.54

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
@@ -3445,7 +3445,11 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
3445
3445
  if (hasMode && !e.target.value.trim().length) {
3446
3446
  const updatedSelected = hasMode ? selected.filter(item => item !== selected[selected.length - 1]) : e.target.value.trim();
3447
3447
  onChange?.(updatedSelected);
3448
- onSelect?.(updatedSelected);
3448
+ if (selected[selected.length - 1]) {
3449
+ onDeselect?.(selected[selected.length - 1]);
3450
+ } else {
3451
+ onSelect?.(updatedSelected);
3452
+ }
3449
3453
  setSelected(updatedSelected);
3450
3454
  }
3451
3455
  }