We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
背景: 在封装antd的table的rowSelection字段,该字段传 undefined || null 时 ,不显示 勾选,传对象(包括空对象)需要显示勾选。 准备用useControllableValue 控制 selectedRowKeys / onChange。 然后rowSelection传了null,发现这个hook报错了。
疑惑
就感觉这个改也行(毕竟现在传null报错),不改也行(貌似是我使用逻辑问题,第一个要不传undefined 或者给个真的对象)。
The text was updated successfully, but these errors were encountered:
第一点:确实应该处理一下,这个没做保护,欢迎 pr 第二点:ts 类型是限制了不能传 null 的,但是只是类型上限制了,你实际传了 null,也没办法。
Sorry, something went wrong.
fix: useControllableValue 当props为null时代码兼容(alibaba#2630)
33b4d5e
fix: useControllableValue 当props为null时代码兼容(#2630) (#2636)
5c7281e
No branches or pull requests
背景:
在封装antd的table的rowSelection字段,该字段传 undefined || null 时 ,不显示 勾选,传对象(包括空对象)需要显示勾选。
准备用useControllableValue 控制 selectedRowKeys / onChange。
然后rowSelection传了null,发现这个hook报错了。
疑惑
就感觉这个改也行(毕竟现在传null报错),不改也行(貌似是我使用逻辑问题,第一个要不传undefined 或者给个真的对象)。

The text was updated successfully, but these errors were encountered: