venia-conceptpwa-buildpackperegrinepwa-devdocsupward-jsupward-spec| Question | Answer |
| --------------------------- | :-----------: |
| Magento version | |
| Operating System + version | |
| node.js version (node -v) | |
| npm version (npm -v) | |
We do not reset field values when user changes the state of the navigation drawer. For example, when user navigates from Sign In form to Create Account form and goes back, we do not reset values inside Sign In form. We also do not reset form state when user closes the drawer and open it again.
@ericerway, @awilcoxa, @soumya-ashok, please, approve that it is a bug.
Field values should be reseted when user enters some information and changes drawer state before submitting the form.
We can simplify the process of management the states of this form but mounting and unmounting the form when the state of the drawer changes. We can use react-transition-group for animation
https://github.com/magento-research/pwa-studio/issues/563
@Starotitorov I am not sure this is a bug. The preferred experience would be not to reset the form state because that means the user would need to enter all the information again. Will discuss with @jimbo and send an update.
When the form is submitted or unmounted, the values should be cleared. But the form should not be unmounted or cleared when the drawer is merely closed. The drawers are stateful and intended to retain their state while hidden.
Closing issue.
Most helpful comment
@Starotitorov I am not sure this is a bug. The preferred experience would be not to reset the form state because that means the user would need to enter all the information again. Will discuss with @jimbo and send an update.