One of the components I have allows users to dynamically edit and add multiple addresses. Here's how the UI appears:
https://i.sstatic.net/3v3ND.png
Whenever I add or edit an address, the entire form field values get reset. This results in a new address form like so:
https://i.sstatic.net/UzaBh.png
However, I only want to clear the address input fields (such as Type, City, etc.) when the add button is clicked.
https://i.sstatic.net/K0oxw.png
Currently, clicking the add button resets all form field values, including the name as shown in the second image. How can I make it so that only the address fields input values are reset when clicking the add button?