Skip to content

Undefined attributes in spread #3067

Closed
@RedHatter

Description

@RedHatter

When some attributes are undefined and set through spread, svelte sets the dom attribute to "undefined". This is caused by src/runtime/internal/dom.ts#L103-L104. The only way I can think to solve this is to include the list of boolean attributes in the runtime.

See repel.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions