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

any sport of key, value, map, index like iterating? #1509

Open
beibarys-jedi opened this issue Dec 25, 2024 · 0 comments
Open

any sport of key, value, map, index like iterating? #1509

beibarys-jedi opened this issue Dec 25, 2024 · 0 comments

Comments

@beibarys-jedi
Copy link

Describe the bug

cannot iterate the loop

{rows.map((_, index) => ( <TableBodyRow key={index}> <TableBodyCell> <Input type="text" placeholder="Enter text" /> </TableBodyCell> <TableBodyCell> <Input type="text" placeholder="Enter text" /> </TableBodyCell> <TableBodyCell> <Input type="text" placeholder="Enter text" /> </TableBodyCell> </TableBodyRow> ))}

Reproduction

cannot iterate the loop

{rows.map((_, index) => (
          <TableBodyRow key={index}>
            <TableBodyCell>
              <Input type="text" placeholder="Enter text" />
            </TableBodyCell>
            <TableBodyCell>
              <Input type="text" placeholder="Enter text" />
            </TableBodyCell>
            <TableBodyCell>
              <Input type="text" placeholder="Enter text" />
            </TableBodyCell>
          </TableBodyRow>
  ))}

Flowbite version and System Info

System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 21.25 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.7.0 - /opt/homebrew/bin/node
    npm: 10.8.2 - /opt/homebrew/bin/npm
    pnpm: 9.12.1 - /opt/homebrew/bin/pnpm
    bun: 1.1.42 - ~/dev/social-jas/node_modules/.bin/bun
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 17.6
  npmPackages:
    @sveltejs/kit: ^2.14.0 => 2.14.0 
    flowbite-svelte: ^0.47.4 => 0.47.4 
    svelte: ^5.15.0 => 5.15.0 
    vite: ^6.0.0 => 6.0.5
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

1 participant