Skip to content

A "false promise" should not set a class name #64

@dariomannu

Description

@dariomannu

To Reproduce

const dotted = Promise.resolve(false);
rml`<div class="${{dotted}}">should NOT be dotted</div>`

Note: ${{ }} is no special syntax. It's just passing an object {dotted} as a normal template argument ${ }

Expected behavior
as the promise resolves to false, the class name should not be set

Link to reproduce
https://stackblitz.com/edit/promise-class-dotted-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions