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

6.4.1The content is not dynamically updated #308

Open
lantianhaijiao opened this issue Mar 28, 2024 · 2 comments
Open

6.4.1The content is not dynamically updated #308

lantianhaijiao opened this issue Mar 28, 2024 · 2 comments

Comments

@lantianhaijiao
Copy link

lantianhaijiao commented Mar 28, 2024

Version: 6.4.1

Desc:
When the list changes, the data will not be updated

Code:

<div @click="changeTab(2)">test change tab</div>
<div
  class="item"
  v-for="(item, index) in currentList"
  :key="index">
  <Tippy
    contentClass="tippy-point"
    placement="bottom"
    :interactive="true"
    ref="tippy"
    :key="'tippy-point' + index"
    @show="show"
    @hide="hide"
  >
    <template #content>
      <List  :list="item.rewards" />
    </template>
  </Tippy>
</div>

...

const list = ref([
{
  rewards: [1,2,3]
},
{
  rewards: [10,20,30]
},
{
  rewards: [100,200,300]
}
]);
const tab = ref(1);
const changeTab = (val) => {
  tab.value = val;
};
const currentList = computed(() => list.value?.[tab.value - 1]);

List Component:

<div class="list">
    <div
      class="list-item"
      v-for="(item, index) in list"
      :key="index"
    >
      {{item}}
    </div>
</div>

But the problem disappears after rolling back to 6.3.1

@KABBOUCHI
Copy link
Owner

plz can u share a reproduction link https://vue.new/? thank you

@adamorlowskipoland
Copy link

adamorlowskipoland commented Sep 27, 2024

Is this one fixed? I am trying to update from 6.3.1 to 6.4.4 can't find release notes. Does anybody has a link?

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

No branches or pull requests

3 participants