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

When Table Selection is set to Disabled, the context is null. #3773

Open
coolmint123 opened this issue Apr 3, 2024 · 1 comment
Open

When Table Selection is set to Disabled, the context is null. #3773

coolmint123 opened this issue Apr 3, 2024 · 1 comment

Comments

@coolmint123
Copy link

coolmint123 commented Apr 3, 2024

Describe the bug

When Table Selection is set to Disabled, the context is null and cannot be set. I thought it was a symptom related to #3417, but it did not improve even after updating. Is there a way around that?

Steps to reproduce (please include code)

    <Table @ref="table" DataSource="@data" @bind-SelectedRows="selectedRows" RowKey="x=>x.Name">
        <Selection Key="@context.Name" Type="@selectionType" Disabled="@(context.Name == "Disabled User")" />
       <PropertyColumn Property="c=>c.Name">
           <a>@context.Name</a>
        </PropertyColumn>
        <PropertyColumn Property="c=>c.Age" />
        <PropertyColumn Property="c=>c.Address" />
   </Table>

Further technical details

  • AntDesign Nuget Package version 0.18.2
  • Include the output of dotnet --info
    .NET SDK:
    Version: 8.0.102
    Commit: 64f1bc458e
    OS Name: Windows
    OS Version: 10.0.22631
    OS Platform: Windows
@ElderJames
Copy link
Member

ElderJames commented Apr 6, 2024

Thanks for contacting us @coolmint123 , how to reproduce the issue you ever met?

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