@shoplflow/base 0.15.3 → 0.17.0

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.d.cts CHANGED
@@ -1075,7 +1075,7 @@ interface InputButtonOptionProps extends Omit<HTMLAttributes<HTMLInputElement>,
1075
1075
  /**
1076
1076
  * 값이 삭제될 때 실행할 함수입니다.
1077
1077
  */
1078
- onClear?: () => void;
1078
+ onClear?: (e: MouseEvent<HTMLButtonElement>) => void;
1079
1079
  onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
1080
1080
  /**
1081
1081
  * Input의 placeholder를 설정합니다.
package/dist/index.d.ts CHANGED
@@ -1075,7 +1075,7 @@ interface InputButtonOptionProps extends Omit<HTMLAttributes<HTMLInputElement>,
1075
1075
  /**
1076
1076
  * 값이 삭제될 때 실행할 함수입니다.
1077
1077
  */
1078
- onClear?: () => void;
1078
+ onClear?: (e: MouseEvent<HTMLButtonElement>) => void;
1079
1079
  onClick?: (e: MouseEvent<HTMLButtonElement>) => void;
1080
1080
  /**
1081
1081
  * Input의 placeholder를 설정합니다.
package/dist/index.js CHANGED
@@ -2040,9 +2040,10 @@ var InputButton = forwardRef(
2040
2040
  onClick && onClick(e);
2041
2041
  }
2042
2042
  };
2043
- const handleOnClear = () => {
2043
+ const handleOnClear = (e) => {
2044
+ e.stopPropagation();
2044
2045
  if (!disabled) {
2045
- onClear && onClear();
2046
+ onClear && onClear(e);
2046
2047
  setText("");
2047
2048
  }
2048
2049
  };