Within the initial modal, users are able to enter their name and hit a create button. Once the name is added, the next modal (modal 2) will appear.
I am seeking advice on how to retain the input from the first modal when a user clicks cancel in the second modal. How can I ensure that the name entered in the first modal, for example, "Kiiiiii," remains and is not erased? What is the correct term for this functionality?
Please disregard any discrepancies between names entered in modal 1 and modal 2. Ideally, they should be consistent.
For context, I am working with Angular. Could someone point me towards resources related to this issue? Thank you.
Any insights or suggestions would be greatly appreciated. Thank you.
I wish for the input to persist even if the cancel button is clicked.
https://i.sstatic.net/XIMhe.png
This image shows the design of the second modal