x-ui-design 0.5.59 → 0.5.61
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 +2 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/lib/components/Input/Input.tsx +3 -7
- package/lib/components/Input/style.css +1 -1
- package/package.json +1 -1
- package/src/app/page.tsx +12 -2
package/dist/index.esm.js
CHANGED
|
@@ -2910,11 +2910,8 @@ const InputComponent = ({
|
|
|
2910
2910
|
}
|
|
2911
2911
|
inputRef.current?.setSelectionRange(nextCaret, nextCaret);
|
|
2912
2912
|
});
|
|
2913
|
-
if (rawInput === mask) {
|
|
2914
|
-
rawInput = '';
|
|
2915
|
-
}
|
|
2916
|
-
setMaskValue(rawInput);
|
|
2917
2913
|
}
|
|
2914
|
+
setMaskValue(rawInput);
|
|
2918
2915
|
const eventWithMaskedValue = {
|
|
2919
2916
|
...e,
|
|
2920
2917
|
target: {
|
|
@@ -2957,7 +2954,7 @@ const InputComponent = ({
|
|
|
2957
2954
|
type: iconRenderVisible ? 'text' : 'password'
|
|
2958
2955
|
} : {}, {
|
|
2959
2956
|
disabled: disabled,
|
|
2960
|
-
value: maskValue
|
|
2957
|
+
value: maskValue,
|
|
2961
2958
|
onChange: handleChange,
|
|
2962
2959
|
onKeyDown: handleOnKeyDown,
|
|
2963
2960
|
className: clsx([prefixCls, className])
|