Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix k-tabs inline variable assignment #6324

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

distantnative
Copy link
Member

Vue 3 doesn't like that inline variable assignment v-bind="(btn = button(tabBtn))".
It just renders each instance of the loop with the last assignment.

So moving this out of the template section into a proper computed property.

@distantnative distantnative added the type: refactoring ♻️ Is about bad code; cleans up code label Mar 3, 2024
@distantnative distantnative added this to the 4.2.0 milestone Mar 3, 2024
@distantnative distantnative requested a review from a team March 3, 2024 13:06
@distantnative distantnative self-assigned this Mar 3, 2024
@bastianallgeier bastianallgeier merged commit 54f6eda into develop-minor Mar 4, 2024
4 checks passed
@bastianallgeier bastianallgeier deleted the fix/k-tabs-v-bind branch March 4, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactoring ♻️ Is about bad code; cleans up code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants