I have two tabs and each tab takes a set of different user inputs. However, every time I switch from let’s say, tab 1 to tab 2 and come back to tab 1, the contents of tab 1 get recreated so I lose all the original user inputs in tab 1. Is there a way to prevent this type of auto-refreshing behavior of tabs? After I return to tab 1 from tab 2, I want to be able to see what the user last inputted in tab 1.
I am also trying to dynamically create the tabs, i.e. have a dynamic number of tabs. So I’m afraid method 2 will not work since you need to predefine the tabs in that method.
I am using persistence in my tab element but it is not working. The tabs refresh and clear all inputs as I switch between them. Here’s how I am defining the tab element: