x-ui-design 0.6.69 → 0.6.70

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
@@ -3524,8 +3524,6 @@ const Select = ({
3524
3524
  setSelected(hasMode ? checkModeInitialValue : initialValue);
3525
3525
  }, [checkModeInitialValue, hasMode, initialValue]);
3526
3526
  const handleClickOutside = useCallback(event => {
3527
- event.preventDefault();
3528
- event.stopPropagation();
3529
3527
  if (!selectRef.current) return;
3530
3528
  const dropdown = document.querySelector(`.${prefixCls}-dropdown`) || document.querySelector(`.${prefixClsV3}-dropdown`);
3531
3529
  const clickedInside = selectRef.current.contains(event?.target) || dropdown && dropdown.contains(event?.target);
@@ -3658,8 +3656,6 @@ const Select = ({
3658
3656
  handleClearInputValue();
3659
3657
  };
3660
3658
  const handleSelect = (e, optionValue, option) => {
3661
- e.preventDefault();
3662
- e.stopPropagation();
3663
3659
  if (hasMode) {
3664
3660
  if (maxCount && selected.length >= maxCount && !selected.includes(optionValue)) {
3665
3661
  return;
@@ -3778,9 +3774,7 @@ const Select = ({
3778
3774
  return valueToCheck.toLowerCase().includes(searchQuery.toLowerCase());
3779
3775
  });
3780
3776
  }, [extractedOptions, filterOption, optionFilterProp, searchQuery]);
3781
- const handleTriggerClick = e => {
3782
- e.preventDefault();
3783
- e.stopPropagation();
3777
+ const handleTriggerClick = () => {
3784
3778
  if (!disabled) {
3785
3779
  setIsOpen(!isOpen);
3786
3780
  onDropdownVisibleChange?.(!isOpen, selected);