Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2.3.3 file which is Cascader.js set mergedFieldNames's value to INTERNAL_VALUE_FIELD, so that when app run getting warning: 'key or value with TreeNode must be the same or you can remove one of them.' #227

Open
ForP opened this issue Dec 21, 2021 · 2 comments

Comments

@ForP
Copy link

ForP commented Dec 21, 2021

image

image

image

@ForP
Copy link
Author

ForP commented Dec 21, 2021

https://github.com/react-component/cascader/blob/v2.3.3/src/Cascader.tsx

const mergedFieldNames = React.useMemo(
() => ({
...outerFieldNames,
value: INTERNAL_VALUE_FIELD,
}),
[outerFieldNames],
);

@galaxynova1999
Copy link

known issue see #230 #230
It has been fixed in version 3.0 , but @3 is in unstable beta stage && has completely removed above INTERNAL_VALUE_FIELD logic && code already been merged in master .
i think it won't release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants