You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On switching tab the content of the form fields are reset to default.
Example I have 2 tabs that contain forms. When filling and switch back and forth between them, I expect to get the input fields of the form to contained the entered values and not to be reseted on switching.
@Salma7amed , if you link your form inputs to class variables -- eg: by using formGroup or formControl --, I think the form state will be rebuilt for you when you switch tabs since the underlying variables would be unchanged.
@ZeBigDuck so the fix will be applied in the next release ?.
@RoxKilly the thing is I don't want it to rebuild the form on each switch. Because in case of tabs containing huge amount of data, it causes unnecessary lag due to the rebuild on each switch.
Activity
yobud commentedon Oct 25, 2016
I've got the same problem.
The problem is that content is destroyed while switching to another tab. That make this md-tabs usable only for static content...
Or maybe I did miss something in the doc.
In fact, the solution has been proposed : #1472
RoxKilly commentedon Oct 26, 2016
@Salma7amed , if you link your form inputs to class variables -- eg: by using
formGrouporformControl--, I think the form state will be rebuilt for you when you switch tabs since the underlying variables would be unchanged.Salma7amed commentedon Oct 26, 2016
@ZeBigDuck so the fix will be applied in the next release ?.
@RoxKilly the thing is I don't want it to rebuild the form on each switch. Because in case of tabs containing huge amount of data, it causes unnecessary lag due to the rebuild on each switch.
jelbourn commentedon Oct 27, 2016
Dupe of #1472
angular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.