Skip to content

Boolean attributes aren't disabled in HTML #13

@jonathanKingston

Description

@jonathanKingston

The following code:

let a = false;
html!(<button disabled=a>"Hey!"</button>);

Outputs:

<button disabled="false">Hey!</button>

When it shouldn't have disabled or output blank string:

<button disabled="">Hey!</button>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions