Skip to content

Commit

Permalink
[pickers] Fix isValid regression (#8543)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasTy committed Apr 7, 2023
1 parent 8380e58 commit 5d06554
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -518,7 +518,7 @@ export const usePickerValue = <
props: { ...props, value: testedValue },
});

return valueManager.hasError(error);
return !valueManager.hasError(error);
};

const layoutResponse: UsePickerValueLayoutResponse<TValue> = {
Expand Down

0 comments on commit 5d06554

Please sign in to comment.