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

UButtonGroup children lose slot prop reactivity. #826

Closed
nilsso opened this issue Oct 17, 2023 · 1 comment
Closed

UButtonGroup children lose slot prop reactivity. #826

nilsso opened this issue Oct 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@nilsso
Copy link
Contributor

nilsso commented Oct 17, 2023

Environment

  • Operating System: Darwin
  • Node Version: v18.1.0
  • Nuxt Version: 3.7.4
  • CLI Version: 3.9.0
  • Nitro Version: 2.6.3
  • Package Manager: [email protected]
  • Builder: -
  • User Config: runtimeConfig, vite, modules, css, components
  • Runtime Modules: @nuxt/[email protected], [email protected]
  • Build Modules: -

Version

v2.9.0

Reproduction

https://stackblitz.com/edit/nuxt-ui-bmpwmk?file=app.vue

Description

Slot props lose reactivity when used within a UButtonGroup. That is, something like this:

<foo v-slot="{ n }">
  <u-button-group>
    <u-badge>{{ n }}</u-badge>
  </u-button-group>
</foo>

Will render only the initial value of n within the UBadge.

I'm guessing this is to do with cloning the slot children?

Additional context

No response

Logs

No response

@nilsso nilsso added the bug Something isn't working label Oct 17, 2023
@benjamincanac benjamincanac added the help wanted Extra attention is needed label Oct 27, 2023 — with Volta.net
Copy link
Member

This should have been solved already by #999.

@benjamincanac benjamincanac removed the help wanted Extra attention is needed label Nov 22, 2023 — with Volta.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants