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
First of all, thanks for adapting this package for Vue 3!
The issue is that using a v-if on a TabContent component within a FormWizard causes the tab content to be created multiple times.
i.e if the condition toggles between true & false (multiple times), the content is duplicated. Even if you add a key attribute to label the component
If includeTab changes from false to true, and false to true again, the 'some-tab' TabContent is rendered multiple times even though there's only one instance passed to the default slot
Update
This is caused by injected addTab method being called by TabContent.. there is no check for uniqueness. I have opened a PR for this
The text was updated successfully, but these errors were encountered:
First of all, thanks for adapting this package for Vue 3!
The issue is that using a v-if on a TabContent component within a FormWizard causes the tab content to be created multiple times.
i.e if the condition toggles between true & false (multiple times), the content is duplicated. Even if you add a key attribute to label the component
Example
<form-wizard> <tab-content v-if="includeTab" key="some-tab" title="Some Tab" icon="lnr lnr-apartment" /> </form-wizard>
If
includeTab
changes from false to true, and false to true again, the 'some-tab' TabContent is rendered multiple times even though there's only one instance passed to the default slotUpdate
This is caused by injected addTab method being called by TabContent.. there is no check for uniqueness. I have opened a PR for thisThe text was updated successfully, but these errors were encountered: