vue-form-wizard icon indicating copy to clipboard operation
vue-form-wizard copied to clipboard

Order of Tab Contents Defined in Template Not Preserved

Open mcwagner opened this issue 5 years ago • 7 comments

It appears when you add the component to modal that it gets re-rendered upon additional clicks of displaying the modal. The generated IDs change so that the order of the tabs and list elements are not retained as defined in the template. Is there a workaround for this occurrence?

On first open: image

After closing and re-opening: image

mcwagner avatar Sep 09 '19 18:09 mcwagner

Same problem here.

AlexH-HankIT avatar Oct 01 '19 13:10 AlexH-HankIT

I'm having this issue too

wendellpbarreto avatar Nov 12 '19 01:11 wendellpbarreto

Same issue when using one of the examples ... nice module.. can't be used like this.

ghost avatar Jan 20 '20 11:01 ghost

So far I have had success using vue's keep-alive. I do not reset the component and it maintains the order if I close and re-open wizard.

danwalker-caci avatar Jan 30 '20 16:01 danwalker-caci

So the keep-alive appeared to work a few times and now it's not. Makes it less desirable to use.

danwalker-caci avatar Feb 04 '20 17:02 danwalker-caci

I don't think that has to do with our library. Does the modal you are using get hidden or recreated when you open/close it?

BRafols avatar Sep 22 '20 07:09 BRafols

I'm having this problem without a modal:

<form-wizard>
    <tab-content title="1 Customize">
       ...
    </tab-content>
    <tab-content title="2 Schedule">
     ...
    </tab-content>
    <tab-content title="3 Preview">
     ...
    </tab-content>
</form-wizard>

gets rendered like this:

Screenshot from 2022-01-11 14-29-59

tutuca avatar Jan 11 '22 17:01 tutuca