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

Checkbox Not Rendering for Boolean ValueType in Editable Table Column #8515

Open
MadiAbhilash opened this issue Jun 23, 2024 · 1 comment
Open

Comments

@MadiAbhilash
Copy link

MadiAbhilash commented Jun 23, 2024

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.

currently I am using

    "@ant-design/pro-table": "^3.16.1",

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.

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

Console output of the render function:
image

DOM inspection showing no checkbox:
image

@wrench7
Copy link

wrench7 commented Feb 25, 2025

See my comment here for a "solution" (ideally the ability to render a single checkbox should be available as well)
#8514 (comment)

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