ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.3k stars 1.36k forks source link

🐛[BUG] #8514

Closed MadiAbhilash closed 4 months ago

MadiAbhilash commented 4 months ago

Checkbox Not Rendering for Boolean ValueType in Editable Table Column

When setting the valueType for an editable table column to checkbox and using a boolean value, the checkbox is not rendered. There is no checkbox element visible in the DOM.

Steps to Reproduce

  1. Configure an editable column in Ant Design Pro Table with valueType: 'checkbox'.
  2. Assign a boolean value to this column.
  3. Observe the rendered table cell for the checkbox.

Expected Behavior

A checkbox should appear in the cell, corresponding to the boolean value.

Actual Behavior

No checkbox is rendered. Additionally, inspecting the DOM reveals no checkbox-related node.

Example Code

{
  title: 'Active',
  dataIndex: 'isActive',
  valueType: 'checkbox',
  editable: true,
  render: (...params) => {
    console.log(params);
    // Should log details about the checkbox rendering
  },
}

No checkbox visible in the cell: image

Console output of the render function: image

github-actions[bot] commented 4 months ago

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!