Skip to content

Commit 099b897

Browse files
author
Edward Xiao
committed
- Update readme.md and avoiding some values to be memoized
1 parent 9ccf577 commit 099b897

17 files changed

+830
-750
lines changed

README.md

Lines changed: 37 additions & 730 deletions
Large diffs are not rendered by default.

lib/components/Checkbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ var component = function component(_ref) {
192192
check();
193193
onBlur(e);
194194
}
195-
}, [internalChecked]);
195+
}, [internalChecked, option]);
196196
var handleOnFocus = useCallback(function (e) {
197197
if (onFocus) {
198198
onFocus(e);

lib/components/Radiobox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ var component = function component(_ref) {
207207
check();
208208
onBlur(e);
209209
}
210-
}, [internalValue]);
210+
}, [internalValue, option]);
211211
var handleOnFocus = useCallback(function (e) {
212212
if (onFocus) {
213213
onFocus(e);

lib/components/Select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ var component = function component(_ref) {
296296
check();
297297
onBlur(e);
298298
}
299-
}, [internalValue]);
299+
}, [internalValue, option]);
300300
var handleOnFocus = useCallback(function (e) {
301301
if (onFocus) {
302302
onFocus(e);

lib/components/Textarea.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ var component = function component(_ref) {
218218
check();
219219
onBlur(e);
220220
}
221-
}, [internalValue]);
221+
}, [internalValue, option]);
222222
var handleOnFocus = useCallback(function (e) {
223223
if (onFocus) {
224224
onFocus(e);
@@ -240,7 +240,7 @@ var component = function component(_ref) {
240240

241241
onKeyUp(e);
242242
}
243-
}, [internalValue]);
243+
}, [internalValue, option]);
244244
var handleOnChange = useCallback(function (e) {
245245
if (disabled || $el === null) {
246246
return;

lib/components/Textbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ var component = function component(_ref) {
254254
check();
255255
onBlur(e);
256256
}
257-
}, [internalValue]);
257+
}, [internalValue, option]);
258258
var handleOnFocus = useCallback(function (e) {
259259
if (onFocus) {
260260
onFocus(e);
@@ -276,7 +276,7 @@ var component = function component(_ref) {
276276

277277
onKeyUp(e);
278278
}
279-
}, [internalValue]);
279+
}, [internalValue, option]);
280280
var handleOnChange = useCallback(function (e) {
281281
if (disabled || $el === null) {
282282
return;

lib/react-inputs-validation.js

Lines changed: 2 additions & 2 deletions
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: 2 additions & 2 deletions
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.

0 commit comments

Comments
 (0)