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 a row is clicked, only call SetEditingItem if IsEditable is true #3245

Merged
merged 2 commits into from
Nov 4, 2021

Conversation

botwinter
Copy link
Contributor

@botwinter botwinter commented Nov 3, 2021

Description

Fixes #3108 by moving the call to SetEditingItem so it is only called when IsEditable is true.

How Has This Been Tested?

Unit test added.

Checklist:

The PR is submitted to the correct branch (dev).
My code follows the code style of this project.
I've added relevant tests.

@mudbot mudbot bot added the needs review label Nov 3, 2021
@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #3245 (f154260) into dev (b57c67f) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #3245      +/-   ##
==========================================
- Coverage   88.54%   88.53%   -0.01%     
==========================================
  Files         289      289              
  Lines       12863    12863              
==========================================
- Hits        11389    11388       -1     
- Misses       1474     1475       +1     
Impacted Files Coverage Δ
src/MudBlazor/Components/Table/MudTr.razor.cs 98.66% <100.00%> (ø)
...ponents/ExpansionPanel/MudExpansionPanels.razor.cs 97.87% <0.00%> (-2.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b57c67f...f154260. Read the comment docs.

Copy link
Member

@JonBunator JonBunator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks :)

@JonBunator JonBunator added bug Something does not work as intended/expected and removed needs review labels Nov 3, 2021
Copy link
Member

@JonBunator JonBunator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, can you please resolve the conflics?

@botwinter
Copy link
Contributor Author

Conflicts resolved

Copy link
Member

@JonBunator JonBunator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@JonBunator JonBunator merged commit 4942fc6 into MudBlazor:dev Nov 4, 2021
@JonBunator JonBunator added this to the 5.2.1 milestone Nov 4, 2021
@Garderoben Garderoben modified the milestones: 5.2.1, 6.0.0 Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as intended/expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MudTable: item selection freezes table filtering
3 participants