albinasoft-ui-package 1.0.103 → 1.0.104
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.
@@ -50,17 +50,9 @@ var CustomInput = function (_a) {
|
|
50
50
|
var renderInput = function () {
|
51
51
|
// If inputType is TEL, use ReactInputMask
|
52
52
|
if (inputType === InputType.TEL) {
|
53
|
-
return (react_1.default.createElement(react_imask_1.IMaskInput, { mask: "0(
|
54
|
-
|
55
|
-
|
56
|
-
// value={value}
|
57
|
-
// onAccept={(val: string) =>
|
58
|
-
// onChange({ target: { name, value: val } } as any)
|
59
|
-
// }
|
60
|
-
// className={`form-control ${className}`}
|
61
|
-
// {...ortakProps}
|
62
|
-
// />
|
63
|
-
);
|
53
|
+
return (react_1.default.createElement(react_imask_1.IMaskInput, { mask: "0(000) 000 00 00", value: value, onAccept: function (val) {
|
54
|
+
return onChange({ target: { name: name, value: val } });
|
55
|
+
}, className: "form-control ".concat(className), style: style, required: required, disabled: disabled, readOnly: readOnly, autoComplete: "new-password" }));
|
64
56
|
}
|
65
57
|
// Otherwise, return a normal input element
|
66
58
|
return (react_1.default.createElement("input", { id: id, name: name, type: handleType, value: value, placeholder: placeholder, onChange: onChange, onKeyDown: onKeyDown, className: "form-control ".concat(className), style: style, required: required, disabled: disabled, readOnly: readOnly, autoComplete: "new-password" }));
|