DatePicker: Show first selected date when DatePicker is nested #8382
DatePicker: Show first selected date when DatePicker is nested #8382henon merged 6 commits intoMudBlazor:devfrom
Conversation
|
Very interesting that is requires |
It does, yes. |
Can you provide justification for the usage of |
I don't have any concrete justification. Just that when I was looking into it I couldn't see why it was behaving the way it did. Given that it was operating in an async context I wondered if there was some weird race condition occurring and just decided to test awaiting it. Even after that worked I tried a few things without it, but it's the only thing that resolved the issue |
|
Yeah, it could be. I see a lot of |
|
@ScarletKuro shall we merge this or do you think we need to investigate some more? |
|
I actually don't see that the added WrappedDatePickerTest.razor was used anywhere in the |
|
Updated with a bUnit test.
Also, I second this ^ |
|
Thanks @Anu6is |
|
This is not fixed in v6.19.1. Interestingly, the problem only occurs for me if I tab into the MudDatePicker field, and then click to open the picker. |
…azor#8382) * DatePicker: Show first selected date when nested * Invoke * add unit test
Also not fixed for me. My scenario is that the MudDatePicker is in a MudContainer, works fine on desktop but not on mobile then the selected date does not show after first selection. My workaround is to simply set the date after it has changed. <MudDatePicker Date="DobValue" DateChanged="DobChange" DateFormat="dd/MM/yyyy" Label="Date Of Birth" /> |
|
@oretodd @Herbstwc one of you should create a new issue explaining the scenarios under which it does not work.
This is what was fixed based on the discussion item #5708
Details such as these should be added to a new issue to be investigated. |
|
I am going to start digging into my issue. But I am trying to upgrade up to 6.21 before I make the jump to 7 This seems to be causing me issues where the initial value gets set then gets overwritten with a null value and removes it from the input field. If I find a solution or exact cause I will update here. |
Description
When the
DatePickeris wrapped/nested in another component (exampleMudFormorMudGrid), the first selected date does not update the input box value.It should be noted that the
DateandTextproperties are successfully updated, however it would appear to the user as thought nothing happened since<input>isn't set.Resolves #5708
How Has This Been Tested?
Tested using the unit test viewer
Before

After

Types of changes
Checklist:
dev).