Changing the size of the view/device rotation during data entry; ensure state isn’t lost.
Generally state is lost from screens like the Custom Amount screen, as they get dismissed. Most problematic with customer details, the other screens are unlikely to have much data entered.
Found during M3 testing: pdfdoF-4GL-p2#comment-5929
Repro:
Launch the app on an iPad
Open the Orders tab and tap +
Tap Add Customer Details or Add Note
Enter some text
Change the size class using a split view so that only one pane is shown
Observe that the sheet is no longer shown
Tap the button again
Observe that your entered values are gone.
I think this is due to the presentation state being held on the OrderForm, which is recreated by the AdaptiveModalContainer on horizontal size class changes.
Moving that state to the EditableOrderViewModel might be enough to fix it, but I suspect we would also need to move the entered value state there as well.
Description
Generally state is lost from screens like the Custom Amount screen, as they get dismissed. Most problematic with customer details, the other screens are unlikely to have much data entered.
Found during M3 testing: pdfdoF-4GL-p2#comment-5929
Repro:
Add Customer Details
orAdd Note
I think this is due to the presentation state being held on the OrderForm, which is recreated by the AdaptiveModalContainer on horizontal size class changes.
Moving that state to the
EditableOrderViewModel
might be enough to fix it, but I suspect we would also need to move the entered value state there as well.