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

useSelections当defaultSelected是数组对象的时候checkbox无法选中 #1105

Closed
ISBN9527 opened this issue Aug 4, 2021 · 3 comments
Closed
Assignees

Comments

@ISBN9527
Copy link

ISBN9527 commented Aug 4, 2021

url: https://codesandbox.io/s/jichuyongfa-forked-uqy15?file=/App.tsx

@ISBN9527
Copy link
Author

ISBN9527 commented Aug 4, 2021

@brickspert 求大佬解答

@brickspert
Copy link
Collaborator

正常行为,{id: 1} === {id: 1} 肯定是不成立的。

@fivge
Copy link

fivge commented Jul 31, 2023

const result: Result = useSelections<T>(items: T[], defaultSelected?: T[]);

请在文档上注明,T 不能为对象

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

4 participants