Skip to content

Commit 6dda736

Browse files
author
edwardxiao
committed
- prevent 'disabled' being cached for <Checkbox> and <Radiobox>
1 parent 850a4ca commit 6dda736

12 files changed

+28
-16
lines changed

lib/components/index.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.css

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.css.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.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.css

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.css.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.

src/js/Inputs/Checkbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const component: React.FC<Props> = ({
133133
onClick(e);
134134
}
135135
},
136-
[err, internalChecked],
136+
[err, internalChecked, disabled],
137137
);
138138
const handleOnChange = useCallback(
139139
(e: React.ChangeEvent<HTMLElement> | React.MouseEvent<HTMLElement>) => {
@@ -148,7 +148,7 @@ const component: React.FC<Props> = ({
148148
setSuccessMsg('');
149149
}
150150
},
151-
[err, internalChecked],
151+
[err, internalChecked, disabled],
152152
);
153153
const check = useCallback(
154154
() => {

0 commit comments

Comments
 (0)