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

UiTabHeaderItem not reactive when using slots #450

Open
sagg opened this issue Jul 17, 2019 · 1 comment
Open

UiTabHeaderItem not reactive when using slots #450

sagg opened this issue Jul 17, 2019 · 1 comment

Comments

@sagg
Copy link
Contributor

sagg commented Jul 17, 2019

Hi,

it seems that the reactivity of UiTabs header is broken when passing a slot.
I made a small example, just click the button which increases an integer value.
How you can see the counter in the first tab is always one value behind. The third example is just a possible workaround, nothing special. :)

https://codesandbox.io/embed/keen-ui-uitabs-reactivity-mq3jz

Or am i doing something wrong? I can't get it working without the workaround.

Thanks again!

@JosephusPaye
Copy link
Owner

JosephusPaye commented Jul 20, 2019

Hi @sagg,

Not sure that's happening there, might be an edge case with Vue's slots combined with a custom render function.

It's probably related to how the header slot is indirectly rendered using a custom render component:

Needs a closer look.

Thanks for the repro BTW, very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants