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

wired-input doesnt render in slot (in wired-card) #128

Closed
martinKumhera opened this issue Apr 1, 2020 · 3 comments
Closed

wired-input doesnt render in slot (in wired-card) #128

martinKumhera opened this issue Apr 1, 2020 · 3 comments

Comments

@martinKumhera
Copy link

If you define an element with a slot element within a wire-card and use this element and provide a wired-input element, it will not be shown.

@martinKumhera
Copy link
Author

MyElement:
import { html, css, LitElement } from 'lit-element';

export class MyElement extends LitElement {
static get styles() {
return css:host { };
}

static get properties() {
return {
};
}

constructor() {
super();
}

render() {
return html<wired-card> <slot></slot> </wired-card>;
}
}

window.customElements.define('my-element', MyElement);

MyApp:
import { html, css, LitElement } from 'lit-element';
import { MyElement } from './MyElement.js';

export class MyApp extends LitElement {
static get styles() {
return css:host { };
}

static get properties() {
return {
};
}

constructor() {
super();
}

render() {
return html<my-element> <wired-input placeholder="Test" value="test"></wired-input> </my-element>;
}
}

window.customElements.define('my-app', MyApp);

@martinKumhera
Copy link
Author

myApp

@pshihn
Copy link
Contributor

pshihn commented Jun 21, 2020

This should be resolve in v2.1.2

@pshihn pshihn closed this as completed Jun 21, 2020
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

2 participants