Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overrided component is not rendered #938

Closed
BenoitClaveau opened this issue Mar 20, 2020 · 2 comments
Closed

Overrided component is not rendered #938

BenoitClaveau opened this issue Mar 20, 2020 · 2 comments

Comments

@BenoitClaveau
Copy link

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].

@BenoitClaveau
Copy link
Author

There's maybe a link with the issue #712 ?

@BenoitClaveau
Copy link
Author

Fixez. I have uninstall/install node_modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant