Skip to content

A form field element should have an id or name attribute #1752

@x0k

Description

@x0k

Describe the bug

The id attribute is not passed to the internal input element causes the issue A form field element should have an id or name attribute in chrome based browsers.
This issue is relevant at least for the Datepicker and Tags components.

Reproduction

https://stackblitz.com/edit/irx6brbk?file=src%2Froutes%2F%2Bpage.svelte

Expected: Internal input elements must have an id attribute.

Version and System Info

System:
    OS: Linux 6.12 cpe:/o:nixos:nixos:25.05 25.05 (Warbler)
    CPU: (12) x64 Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
    Memory: 2.52 GB / 15.56 GB
    Container: Yes
    Shell: 5.2.37 - /run/current-system/sw/bin/bash
  Binaries:
    Node: 24.6.0 - /nix/store/90v6af579yzsqdqivfkbkdkra365kkv4-nodejs-24.6.0/bin/node
    npm: 11.5.1 - /nix/store/90v6af579yzsqdqivfkbkdkra365kkv4-nodejs-24.6.0/bin/npm
    pnpm: 10.15.0 - /nix/store/qzw56f9vai5jg9dm3wbm45r6cc6b65d8-pnpm-10.15.0/bin/pnpm
  Browsers:
    Brave Browser: 139.1.81.131
  npmPackages:
    flowbite-svelte: ^1.13.7 => 1.13.7 
    svelte: catalog: => 5.38.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions