Data lost in variable
I have a test project with two tabs . Each tab is a component featuring two input fields for Name and Address , along with a button . When the user clicks the button , a random name and address are populated into the input fields . Works great ! The problem is , when I switch between tabs , the values of the variables in the previous tab reset to their default values . They do not retain their values . Is it because these variables are set in the component ? Here is the test project : https://start-test_tabs_data.toddle.site Show /hide essentially takes it out of the DOM on hide and fetches it back on show So all the variables inside the component are reset as it is loaded back
.jpeg/public)