Skip to content

Overrided component is not rendered #938

@BenClaveau

Description

@BenClaveau

The new version of LitElement fails to render overrided component.

class A extends LitElement {
  static get properties() {
        return {
            values: Array,
        }
    }
  render() {
        return html`
            <div>${this.values.map(e => this.renderItem(e))}</div>
        `
    }
   renderItem(e) {
     return null;
   }
}

class B extends A {
  static get properties() {
        return super.properties,
  }
  renderItem(e) {
     return html`<div>TEST</div>`;
   }
}

B do not display a list of

TEST
but render a list of [object Object].

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