Skip to content

The bind:open feature does not work under dialog #16703

@millken

Description

@millken

Describe the bug

Object literal may only specify known properties, and '"bind:open"' does not exist in type 'HTMLProps<"dialog", HTMLAttributes>'.ts(2353)
bind:open can only be used with


https://svelte.dev/e/bind_invalid_targetsvelte(bind_invalid_target)

Reproduction

<dialog bind:open={open} ..>..</dialog>

Logs

System Info

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (32) x64 Intel(R) Core(TM) i9-14900HX
    Memory: 17.41 GB / 31.12 GB
    Container: Yes
    Shell: 3.6.0 - /usr/bin/fish
  Binaries:
    Node: 22.16.0 - ~/.version-fox/temp/1756483200-5086/nodejs/bin/node
    npm: 10.9.2 - ~/.version-fox/temp/1756483200-5086/nodejs/bin/npm
    pnpm: 10.12.1 - ~/.version-fox/temp/1756483200-5086/nodejs/bin/pnpm
  Browsers:
    Chrome: 139.0.7258.138
  npmPackages:
    svelte: ^5.38.6 => 5.38.6

Severity

annoyance

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