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

UTable (Hydration attribute mismatch on checbox) #1236

Closed
wildy13 opened this issue Jan 15, 2024 · 2 comments
Closed

UTable (Hydration attribute mismatch on checbox) #1236

wildy13 opened this issue Jan 15, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@wildy13
Copy link

wildy13 commented Jan 15, 2024

Description

image

when i using this code from NUXT UI in my code, i get this error.
but, before this project, i didnt get this error.

<script setup>
const people = [{
  id: 1,
  name: 'Lindsay Walton',
  title: 'Front-end Developer',
  email: 'lindsay.walton@example.com',
  role: 'Member'
}, {
  id: 2,
  name: 'Courtney Henry',
  title: 'Designer',
  email: 'courtney.henry@example.com',
  role: 'Admin'
}, {
  id: 3,
  name: 'Tom Cook',
  title: 'Director of Product',
  email: 'tom.cook@example.com',
  role: 'Member'
}, {
  id: 4,
  name: 'Whitney Francis',
  title: 'Copywriter',
  email: 'whitney.francis@example.com',
  role: 'Admin'
}, {
  id: 5,
  name: 'Leonard Krasner',
  title: 'Senior Designer',
  email: 'leonard.krasner@example.com',
  role: 'Owner'
}]

function select (row) {
  const index = selected.value.findIndex((item) => item.id === row.id)
  if (index === -1) {
    selected.value.push(row)
  } else {
    selected.value.splice(index, 1)
  }
}

const selected = ref([people[1]])
</script>

<template>
  <UTable v-model="selected" :rows="people" @select="select" />
</template>


@wildy13 wildy13 added the question Further information is requested label Jan 15, 2024
@benjamincanac benjamincanac added the duplicate This issue or pull request already exists label Jan 15, 2024 — with Volta.net
Copy link
Member

Duplicate #1171.

@benjamincanac benjamincanac closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
@wildy13
Copy link
Author

wildy13 commented Jan 16, 2024

Duplicate #1171.

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants