MudTimePicker: Fix hour not updating when changed more than once (#7483)#7517
Conversation
|
FYI -- had to add |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev #7517 +/- ##
=======================================
Coverage 90.56% 90.56%
=======================================
Files 427 427
Lines 15210 15213 +3
=======================================
+ Hits 13775 13778 +3
Misses 1435 1435
☔ View full report in Codecov by Sentry. |
henon
left a comment
There was a problem hiding this comment.
Thank you for your contribution. Please address the following issues:
The MouseUp logic looks fishy and probably needs correction. The unit tests probably too.
@henon thank you for the feedback and the doubts -- you were right, my implementation was incorrect and based on false assumptions. My initial assumption was that the To avoid messing around with those, the "new" implementation verifies, when a I also discovered an edge case where switching back to the Edit: I don't mind digging deeper if need be, don't hold back :) |
|
Looking good now, don't worry about it, I make plenty of similar mistakes myself when the day is long. |
…Blazor#7483) (MudBlazor#7517) * MudTimePicker: Fix hour not updating when changed more than once Fixes: MudBlazor#7483
Description
Fixes: #7483
As described in the original issue: when changing the hour more than once, the hour is not immediately updated, only when the minutes are updated.
I removed a check in the
OnMouseUpfunction (that to me does not seem necessary, maybe a leftover from previous implementations?) that stopped the hour from updating.How Has This Been Tested?
Visually verified + bUnit-tested.
Types of changes
Checklist:
dev).