Topic: Create stepper dynamically
farawayslv
asked 12 months ago
Stepper should build depend on controls of FormArray after adding new controls. Controls added, but stepper not rebuild. HTML and TS: http://prntscr.com/s1mxab [2]: http://prntscr.com/s1mxql
P.S. Made some tests and think that steps actually added but need refresh stepper. Because new steps shows only after tap next/previous step.Tried after add new step get stepper by ViewChild and use methods stepper.previous() and then set current step as active setNewActiveStep(index). Good work, if we have previous step :)) If current step is first, its not work.
Konrad Stępień
staff answered 11 months ago
We'll take a closer look at this problem.
Could you send me your project to me on my mail: k.stepien@mdbootstrap.com?
Best, Konrad.
farawayslv commented 11 months ago
Thanks for attention. I'll create small project for reproduce and send it.
farawayslv commented 11 months ago
Konrad, I can't send e-mail because it blocked as danger :))I made repository Link Removed
Konrad Stępień staff commented 11 months ago
Hi @farawayslv,
Thank for your snippet. I found the problem and we have to add change detection for the stepper component.
We will try to update this component as soon as possible.
Best, Konrad.
farawayslv commented 11 months ago
Thanks :)) I going to use this case in my project so will be impatiently wait update.
electricbaby commented 10 months ago
Is there any update on this issue as we are also facing this issue
Konrad Stępień staff commented 10 months ago
Unfortunately, this has not yet been entered. The solution still needs to be checked.
Answered
- User: Free
- Premium support: No
- Technology: Angular
- MDB Version: 9.0.0
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes