We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1261b4e commit 18145e1Copy full SHA for 18145e1
src/ValidityState.ts
@@ -62,7 +62,7 @@ export const reconcileValidity = (validityObject: ValidityState, newState: Parti
62
export const isValid = (validityState: Partial<ValidityState>): boolean => {
63
let valid = true;
64
for (let key in validityState) {
65
- if (key !== 'valid' && (validityState[key] !== false && validityState[key] !== undefined)) {
+ if (key !== 'valid' && (validityState[key] === true)) {
66
valid = false;
67
}
68
0 commit comments