[Bug] react-vtable :checkbox disable状态下,全选还能选中
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
Version
^1.17.6
Link to Minimal Reproduction
none
Steps to Reproduce
{
field: 'check',
title: '',
width: 60,
headerType: 'checkbox',
cellType: 'checkbox',
headerStyle: {
textAlign: 'center',
},
style: {
textAlign: 'center',
},
disable: (args) => {
const { col, row } = args;
return row !== 0 && row % 2 === 0;
},
},
Current Behavior
checkbox disable状态下,全选还能选中
Expected Behavior
checkbox disable状态下,全选不选中disable的checkbox
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start from the checkbox column configuration in the report and trace the header checkbox's select-all behavior when disable returns true for rows; reproduce the case using the supplied configuration. Done means disabled checkboxes remain unselected when selecting all, with coverage added if an existing checkbox test entry point is found.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100