首页 > 解决方案 > 反应数据网格自动完成编辑器为空字段抛出无效的道具错误

问题描述

我的反应数据网格组件在字段上有一个自动完成编辑器。当一个单元格包含一个值并被单击时,下拉和类型选择按预期工作。当单元格包含空值时,单击单元格会引发以下错误:

Warning: `value` prop on `input` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.

如何最好地摆脱这个错误?

标签: reactjsreact-data-grid

解决方案


推荐阅读