Skip to content

fix: boolean attributes not overriding default property values in fast-element #4566

Open
@nicholasrice

Description

@nicholasrice

🐛 Bug Report

Min Repro: https://stackblitz.com/edit/typescript-bxsxvb?file=index.ts

💻 Repro or Code Sample

  1. Define an custom-element with some attribute with mode="boolean", with the default value assigned true
  2. Define another custom-element that renders the above element into it's shadow DOM. Use boolean template binding syntax to assign the attribute a false value.

🤔 Expected Behavior

The attribute should not exist on the element and the underlying property value should be false.

😯 Current Behavior

The attribute exists on the element and the underlying property value is true.

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