Skip to content

Commit 475d204

Browse files
author
Edward Xiao
committed
- fix cached in handleOnChange in <Textbox/> for the reason of mantissa etc.
1 parent 08ce970 commit 475d204

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

lib/components/Textbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ var component = function component(_ref) {
338338
} else {
339339
setSuccessMsg('');
340340
}
341-
}, [err]);
341+
}, [err, attributesInput, option]);
342342
var check = useCallback(_asyncToGenerator(regeneratorRuntime.mark(function _callee() {
343343
var reg, min, max, type, name, check, length, regMsg, locale, compare, required, msgOnSuccess, customFunc, _msg, nameText, customFuncResult;
344344

lib/react-inputs-validation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react-inputs-validation.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-inputs-validation",
3-
"version": "4.1.7",
3+
"version": "4.1.8",
44
"description": "React form input validation components",
55
"main": "index.js",
66
"repository": {

src/js/Inputs/Textbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const component: React.FC<Props> = ({
248248
setSuccessMsg('');
249249
}
250250
},
251-
[err],
251+
[err, attributesInput, option],
252252
);
253253
const check = useCallback(
254254
async () => {

0 commit comments

Comments
 (0)